早睡早起,方能养生!
Sleep early rise early, square can preserve one's health!

select readonly还是能选择 解决办法

2021-04-14 14:29
views 526
<style>
    select[readonly] {
        background: #eee;
        cursor: no-drop;
    }
    select[readonly] option {
        display: none;
    }
</style>
<!-- 直接加上readonly属性, 有上面的样式在,下拉框点不动 -->
<select name="" id="" readonly>
    <option value="">1</option>
    <option value="">1</option>
</select>

 

 

本文转载自:https://blog.csdn.net/weixin_37281289/article/details/109295890


分享
0 条讨论
top