`
yiminghe
  • 浏览: 1480885 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Button In Extjs Style

阅读更多

 

 

没啥技术含量,都知道 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
分享到:
评论
3 楼 block 2009-08-26  
yiminghe 写道
block 写道
ie下效果和其他浏览器不一样。
解决办法:为button添加overflow:visible


?默认 overflow就是visible 啊,我说的是 ie6 button text过长,会出现毛边,
所以用ext样式自己包装button

我指的是你的ButtonLite的宽度,我在IE7下看到的宽度与Chrome下看到的宽度不同,虽然是同一个ButtonLite。
2 楼 yiminghe 2009-08-21  
block 写道
ie下效果和其他浏览器不一样。
解决办法:为button添加overflow:visible


?默认 overflow就是visible 啊,我说的是 ie6 button text过长,会出现毛边,
所以用ext样式自己包装button
1 楼 block 2009-08-21  
ie下效果和其他浏览器不一样。
解决办法:为button添加overflow:visible

相关推荐

    ExtJS_Designer(安装程序与破解补丁)

    * 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) 摘自官方原文

    学习ExtJS Window常用方法

    一、属性 plain:布尔类型,true表示强制与背景色保持协调,默认值为false。... bodyStyle:与边框的间距,如:bodyStyle:”padding:3px”。 buttonAlign:窗体中button的对齐方式(left、center、righ

    unigui0.83.5.820

    0.83.5.820 +---------------------------------------------------------------------------------------- - 0000796: DBGrid: Render bug when Column color is clWindow and project is created ...- Style:"color:...

    ExtAspNet_v2.3.2_dll

    -Button控件将不再自动拥有display:inline属性,如果希望两个按钮在一行显示,请为第一个按钮设置CssStyle="float:left;"属性。 -修正了弹出菜单的位置在Firefox下不正确的BUG(feedback:eroach)。 -为TriggerBox...

    ExtAspNet v2.2.1 (2009-4-1) 值得一看

    -Button控件将不再自动拥有display:inline属性,如果希望两个按钮在一行显示,请为第一个按钮设置CssStyle="float:left;"属性。 -修正了弹出菜单的位置在Firefox下不正确的BUG(feedback:eroach)。 -为TriggerBox...

Global site tag (gtag.js) - Google Analytics