課程
/前端開發
/Bootstrap
/玩轉Bootstrap(基礎)
為什么鼠標放上去沒有cursor: not-allowed;禁用樣式,雖然不能點擊了? 但鼠標還是箭頭
2014-12-18
源自:玩轉Bootstrap(基礎) 3-23
正在回答
下面這樣設置就可以了:
pointer-events:?auto!important; cursor:?not-allowed!important;
我試過了是可行的,各位可以試試。
<style>
? ? .printer_none {
? ? ? ? ? ? pointer-events: none;
?? ? ? ?}
? ? ? ? .cursor_none {
? ? ? ? ? ? cursor: not-allowed;
? ? ? ? }
</style>
<div class="printer_none?">
<input type="text" class="cursor_none?" />
</div>
這樣就能將兩個屬性同時應用上了。
weixin_慕仙6466035
因為設置了 pointer-events:none; ?把所有點擊事件全部禁掉了,所有cursor 也沒有了
遇到了同樣的問題,提問了也沒人回答。請問樓主搞懂了沒?
慕粉0724423299
qq_再見已枉然_0
123
是由于設置了 pointer-events:none;所致。。。
http://www.w3chtml.com/css3/properties/user-interface/cursor.html
試試看,有的
cursor:no-drop|not-allowed
cursor:@cursor-disabled;
buttons.less
@cursor-disabled:not-allowed
variables.less
= =?我好像沒有看到樣式表有 cursor:not allowed
舉報
告訴你使用Bootstrap,并且能夠獨立定制出適合自己的Bootstrap
2 回答不用點擊當鼠標放上去直接顯示下拉菜單
1 回答怎么能把鼠標點擊過的按鈕,樣式變為active
5 回答禁用狀態按鈕的鼠標指針形狀?
3 回答鼠標懸浮不亮?
2 回答鼠標懸浮高亮是什么意思?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2018-08-22
下面這樣設置就可以了:
我試過了是可行的,各位可以試試。
2018-03-06
<style>
? ? .printer_none {
? ? ? ? ? ? pointer-events: none;
?? ? ? ?}
? ? ? ? .cursor_none {
? ? ? ? ? ? cursor: not-allowed;
? ? ? ? }
</style>
<div class="printer_none?">
<input type="text" class="cursor_none?" />
</div>
這樣就能將兩個屬性同時應用上了。
2017-03-22
因為設置了 pointer-events:none; ?把所有點擊事件全部禁掉了,所有cursor 也沒有了
2017-02-15
遇到了同樣的問題,提問了也沒人回答。請問樓主搞懂了沒?
2017-01-23
123
2016-10-08
是由于設置了 pointer-events:none;所致。。。
2016-08-19
http://www.w3chtml.com/css3/properties/user-interface/cursor.html
試試看,有的
2016-07-16
cursor:no-drop|not-allowed
2016-07-16
cursor:@cursor-disabled;
buttons.less
@cursor-disabled:not-allowed
variables.less
2016-05-17
= =?我好像沒有看到樣式表有 cursor:not allowed