简体   繁体   中英

How do you make it so when you hover over a textbox it shows the blocked cursor?

Im not sure what its name is but i just call it disabled cursor. Here is a picture of it so you can just tell me Picture of cursor:

在此处输入图像描述

What im trying to do is that when you hover over the text box the cursor shows. Here is my current code:

<input type="text" disabled="" autocomplete="off" id="keyword" name="s" value="" class="text">

Blocked cursor can be displayed by rule cursor: not-allowed . Pass the disabled="true" value to the :hover selector.

 #keyword[disabled="true"]:hover { cursor: not-allowed; }
 <input type="text" disabled="true" autocomplete="off" id="keyword" name="s" value="" class="text">

You can just add to your css cursor: not-allowed;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM