【发布时间】:2011-11-17 13:44:42
【问题描述】:
我是 HTML5 新手并使用 sencha touch。 请任何人给我一个如何更改工具栏颜色的完整示例。 我尝试使用 scss 来做到这一点,但我没有成功。 感谢所有答案,
代码:
//wrapped with css tag
@include sencha-toolbar-ui('yellow', #E9D890, 'bevel');
var loginPanel = new Ext.Panel({
fullscreen: true,
items: [
// add a panel to the root panel
{
xtype: "form",
renderTo: document.body,
items: [
{
xtype: "textfield",
name: "username",
id:"txtusername",
label: "Username",
placeHolder: "your username here",
},
{
xtype: "passwordfield",
name: "password",
id:"txtpassword",
label: "Password",
placeHolder: "your password here"
},
{
width:100,
xtype:"button",
iu:"action",
text: "log in",
handler:logIn
}
]
}
],
dockedItems: [
{
xtype:"toolbar",
dock: "bottom",
items: [
{
iconMask: true,
iconCls:"team",
handler:tapfbHandler,
}
]
},
{
xtype:'toolbar',
dock:'top',
title:'app name',
ui:'yellow'
}]
});
我必须包含任何样式文件吗? 谢谢。
【问题讨论】:
标签: sencha-touch