<body onselectstart="return false"> 这里加的话, 整个页面都不能复制文字。
如果是针对IE浏览器的话 ,CSS 应该可以这样写,代码如下
<style type="text/css">
.sl{gn:expression(this.onselectstart=function(){return false;})}
</style>
<div class="sl">
不能复制文字
</div>
<body onselectstart="return false"> 这里加的话, 整个页面都不能复制文字。
如果是针对IE浏览器的话 ,CSS 应该可以这样写,代码如下
<style type="text/css">
.sl{gn:expression(this.onselectstart=function(){return false;})}
</style>
<div class="sl">
不能复制文字
</div>