没啥技术含量,都知道 IE6 的button 字很长的话,就会很难看 ,那么就修复一下吧,还是用ext的设计素材 .

使用代码:
<button id="test2">testtesttesttesttesttesttesttesttesttesttest2</button>
<br/>
<br/>
<br/>
<button id="test">testtesttesttesttesttesttesttesttesttesttest</button>
<script type="text/javascript">
Ext.onReady(function(){
new Ext.ux.ButtonLite({
id:'test2'
});
});
</script>
事件仍然注册在 button 上面 ,结果只是对button包了一层,并加入 仿原始的button 鼠标移过高亮,点击变重色等。
/*
v1.0(20090805) 借用extjs Button 素材装饰一下,防止ie6 button 文字过长毛边
v1.1(20090825) button 装饰后后去除 extStyle
v1.2(20090827) 加入version配置,或许你喜欢extjs2的样式呢
*/

- 大小: 3.5 KB
分享到:
相关推荐
* CSS updates for reset style scoping and easier custom theming * Update the Ext event registration model * Ext.Ajax enhancements * Browser history support (released in 2.2) 摘自官方原文
一、属性 plain:布尔类型,true表示强制与背景色保持协调,默认值为false。... bodyStyle:与边框的间距,如:bodyStyle:”padding:3px”。 buttonAlign:窗体中button的对齐方式(left、center、righ
0.83.5.820 +---------------------------------------------------------------------------------------- - 0000796: DBGrid: Render bug when Column color is clWindow and project is created ...- Style:"color:...
-Button控件将不再自动拥有display:inline属性,如果希望两个按钮在一行显示,请为第一个按钮设置CssStyle="float:left;"属性。 -修正了弹出菜单的位置在Firefox下不正确的BUG(feedback:eroach)。 -为TriggerBox...
-Button控件将不再自动拥有display:inline属性,如果希望两个按钮在一行显示,请为第一个按钮设置CssStyle="float:left;"属性。 -修正了弹出菜单的位置在Firefox下不正确的BUG(feedback:eroach)。 -为TriggerBox...