user-select属性详解


当前第2页 返回上一页

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8" />

<title></title>

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

<style>

.test{

padding:10px;

-webkit-user-select:none;

-moz-user-select:none;

-o-user-select:none;

user-select:none;

background:#eee;}

</style>

</head>

<body>

<div onselectstart="return false;" unselectable="on">选择我试试,你会发现怎么也选择不到我,哈哈哈哈</div>

</body>

</html>

效果图:

05e70dbea1c115b36f81c80ffe989cf.png

以上就是user-select属性详解的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

html如何取消文本选中

user-select属性详解

user-select如何使用?默认值是什么?

更多相关阅读请进入《user-select》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...