I'm having trouble disabling text selection in a <li>
element.
<ul>
<li>Text</li>
</ul>
user-select
works in <div>
, but doesn't work in <li>
content.
I'm having trouble disabling text selection in a <li>
element.
<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:
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:
© 2022 - 2024 — McMap. All rights reserved.