当前位置: 首页 - 编程技术 - 文章正文

解决eayui中文本框,下拉框禁用后变灰色的问题

xiaoqihv

使用以下属性禁用:

$("input").attr("disabled",true); $(".easyui-combobox").combobox({ disabled: true }); $(".easyui-combotree").combotree({ disabled: true });

之后就会出现灰色背景,不贴图了。。。

解决方法: 原理就是复写其原来的样式。

.validatebox-disabled{ background:#fff!important; } .textbox-disabled .textbox-addon.textbox-addon-right{ display:none; } .layer-input-box ul.layer-input-main li div.layer-input-right input{ background-color: #fff; } .textbox-disabled, .textbox-label-disabled { opacity: 1; }

这样就好了。

文章地址:https://wenmayi.cn/post/622.html