課程
/前端開發(fā)
/Bootstrap
/玩轉(zhuǎn)Bootstrap(基礎(chǔ))
為什么鼠標(biāo)放上去沒有cursor: not-allowed;禁用樣式,雖然不能點(diǎn)擊了? 但鼠標(biāo)還是箭頭
2014-12-18
源自:玩轉(zhuǎn)Bootstrap(基礎(chǔ)) 3-23
正在回答
下面這樣設(shè)置就可以了:
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>
這樣就能將兩個(gè)屬性同時(shí)應(yīng)用上了。
weixin_慕仙6466035
因?yàn)樵O(shè)置了 pointer-events:none; ?把所有點(diǎn)擊事件全部禁掉了,所有cursor 也沒有了
遇到了同樣的問題,提問了也沒人回答。請(qǐng)問樓主搞懂了沒?
慕粉0724423299
qq_再見已枉然_0
123
是由于設(shè)置了 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
舉報(bào)
告訴你使用Bootstrap,并且能夠獨(dú)立定制出適合自己的Bootstrap
2 回答不用點(diǎn)擊當(dāng)鼠標(biāo)放上去直接顯示下拉菜單
1 回答怎么能把鼠標(biāo)點(diǎn)擊過的按鈕,樣式變?yōu)閍ctive
5 回答禁用狀態(tài)按鈕的鼠標(biāo)指針形狀?
3 回答鼠標(biāo)懸浮不亮?
2 回答鼠標(biāo)懸浮高亮是什么意思?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2018-08-22
下面這樣設(shè)置就可以了:
我試過了是可行的,各位可以試試。
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>
這樣就能將兩個(gè)屬性同時(shí)應(yīng)用上了。
2017-03-22
因?yàn)樵O(shè)置了 pointer-events:none; ?把所有點(diǎn)擊事件全部禁掉了,所有cursor 也沒有了
2017-02-15
遇到了同樣的問題,提問了也沒人回答。請(qǐng)問樓主搞懂了沒?
2017-01-23
123
2016-10-08
是由于設(shè)置了 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