我試過了,失敗了。任何人都知道嗎?任何方法都可以,CSS,JavaScript或其他。如何使我的Sencha Touch 2按鈕呈矩形?
1
A
回答
1
當你創建你按鈕只需添加一個style
屬性按鈕,如下所示:
{
xtype:'button',
text: 'Button',
style:'border-radius:0'
}
您也可以使用cls
屬性的CSS類關聯到你的按鈕,然後添加樣式一個單獨的CSS文件鏈接到您的HTML文件。
希望這有助於
在你的自定義theme.scss文件
1
,添加以下行
$button-radius: '0px';
然後編譯使用命令「指南針編譯」 SCSS文件。
這會對你有所幫助。
+1
這是做到這一點的正確方法。 另外值得注意的是它需要以上: import'sencha-touch/default'; import'sencha-touch/default/all'; 如果你包括這些。 – bwags 2015-05-13 14:55:15
相關問題
- 1. Sencha Touch:按鈕
- 2. 在XTemplate中插入按鈕Sencha Touch 2
- 3. Sencha Touch 2按鈕鬆動聽衆
- 4. Sencha Touch和Facebook按鈕
- 5. Sencha Touch 2 Ext.util.Geolocation
- 6. Sencha Touch 2 vs DHTMLX Touch
- 7. Sencha Touch - 如何調整按鈕上使用的圖標圖標
- 8. 輸入欄內的按鈕Sencha Touch 2.0
- 9. 如何更改sencha touch中按鈕的按下狀態
- 10. Sencha Touch 2表格
- 11. items in sencha touch 2
- 12. Sencha Touch 2 List Reload
- 13. 更改按鈕文本(selectfield) - Sencha Touch
- 14. Sencha Touch 2:如何覆蓋導航視圖上的返回按鈕
- 15. 按鈕寬度 - 包裝內容(Sencha touch 2)
- 16. 如何在Sencha Touch 2上升級Cordova
- 17. Sencha Touch 2 - 如何獲取表單值?
- 18. 呈現Sencha Touch 2應用程序的最快方法
- 19. Sencha Touch 2 carousel.setItems()不工作
- 20. Sencha Touch 2 FieldSet字段值
- 21. 安裝Sencha Touch 2框架
- 22. Extend Class second time sencha touch 2
- 23. Sencha Touch 2「TouchStyle」示例
- 24. Sencha Touch 2推送通知
- 25. 檢索sencha touch 2 fieldsetss值
- 26. Sencha Touch 2視口縮放
- 27. Sencha Touch 2:ListItems爲空
- 28. Sencha Touch 2 android性能
- 29. Sencha Touch 2 - 切換視圖
- 30. Sencha touch 2- Ext.dispatch更換?
請顯示您的代碼。 – hekomobile 2012-07-18 22:53:54
@hekomobile所以現在有一個解決方案...我改變了我的文件($ include-border-radius:false;)中的一個sass變量。現在所有按鈕都是矩形。這是我願意支付的價格,但必須有更好的方式。請注意任何嘗試此操作的人:在sass文件中導入所有行之前進行此修改。 – PendingVegan 2012-07-18 23:15:12