更改用户与网站内容交互方式的类。
1、文本选择
更改用户与内容交互时选择内容的方式。注意,Internet Explorer
和Legacy Edge
不支持user-select
的所有值,因此,两个浏览器都不支持.user-select-all
。
<p class="user-select-all">This paragraph will be entirely selected when clicked by the user.</p>
<p class="user-select-auto">This paragraph has the default select behavior.</p>
<p class="user-select-none">This paragraph will not be selectable when clicked by the user.</p>
通过在variables.scss
中更改$user-selects
Sass列表来定制可用的类。
后记
如果你感觉文章不咋地
//(ㄒoㄒ)//
,就在评论处留言,作者继续改进;o_O???
如果你觉得该文章有一点点用处,可以给作者点个赞;\\*^o^*//
如果你想要和作者一起进步,可以微信扫描二维码,关注前端老L;~~~///(^v^)\\\~~~
谢谢各位读者们啦(^_^)∠※
!!!