I'm having trouble disabling text selection in a <li>
element.
http://jsfiddle.net/U3djn/
<ul>
<li>Text</li>
</ul>
user-select
works in <div>
, but doesn't work in <li>
content.
a combination of user-select: none
and cursor: default
works:
jsFiddle
ul li {
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: default;
}
tested on:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With