标签:下拉 art class post this ado play 页面 cursor
在html中是select readonly后。依旧能够下拉选择。不想做disabled添加隐藏域,以下提供两种解决方式
解决方式1:
onfocus="this.defaultIndex=this.selectedIndex;" onchange="this.selectedIndex=this.defaultIndex;"
解决方式2,通过css解决。无法看到其它选项
select[readonly] { background: #eee; cursor: no-drop; } select[readonly] option { display: none; }
标签:下拉 art class post this ado play 页面 cursor
原文地址:http://www.cnblogs.com/llguanli/p/6937586.html