ext text 去边框

xiaoxiao2021-02-27  306

triggerWrapCls:''//这个值直接设置成空,就把边框去掉了,不需要再写class,默认的追加Ext.baseCSSPrefix + 'form-trigger-wrap',可以根据三元表示是判断是否显示输入边框 var txtCount = new Ext.form.field.Display({ fieldLabel: '汇总:', labelWidth: 40, hidden: false, readOnly: true }); 可以setValue 搞不懂为什么css的样式在extjs里不生效?如下方法可以用样式去边框 <style> .my-border-none-textfield{border-style:none;} </style> var txtCount = new Ext.form.field.Text({ inputWrapCls: 'my-border-none-textfield',//输入框隐藏样式 triggerWrapCls:'my-border-none-textfield',//触发隐藏样式 fieldLabel: '汇总:', labelWidth: 40, hidden: false, readOnly: true });
转载请注明原文地址: https://www.6miu.com/read-15499.html

最新回复(0)