上次弄了个显示button的,但是后面没有透明,今天弄了透明的。得重写样式。看下效果:

代码如下:
id : 'bt_kt',
xtype : 'button',
text : ' <span class="bt_cls">勘探</span> ',
ui : 'normal',
cls : 'noBorder',
iconAlign : 'top',
iconCls : 'bt_kt',
iconMask : true,
handler : function onclick() {
}
/**按钮无背景***/
.noBorder{
background-color:transparent !important;
border:none !important;
background-image:none !important;
}
本文介绍了一种在ExtJS中实现按钮透明背景的方法。通过重写按钮样式,去除背景颜色、边框及背景图片,使得按钮能够完全透明。文中提供了具体的代码实现。
&spm=1001.2101.3001.5002&articleId=8663820&d=1&t=3&u=13edb446221044729d3cb5da0e53679e)

被折叠的 条评论
为什么被折叠?



