且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ExtJS-更改默认按钮样式和字体

更新时间:2023-11-26 12:47:46

如果您还没有准备好使用SASS进行主题化,请查看sencha文档中的按钮配置示例:

If you are not ready for theming with SASS just yet take a look at this example of button configs from the sencha docs:

Stanadalone 示例页面:

Stanadalone Example page: http://docs.sencha.com/extjs/4.1.3/extjs-build/examples/button/button.html

CSS ,用于向按钮添加自定义图像:

CSS that adds customized images to the buttons: http://docs.sencha.com/extjs/4.1.3/extjs-build/examples/button/button.css

JS : http://docs.sencha.com/extjs/4.1.3/extjs-build/examples/button/button.js

基本上,这表明如何使用按钮配置上的iconCls属性以及简单的CSS类向按钮添加所需的图像.

Essentially this shows how to use iconCls property on the button config along with a simple CSS class to add desired image to your button.