不可选文字 - 跨浏览器解决方案 [英] Unselectable text - Cross browser solution

查看:92
本文介绍了不可选文字 - 跨浏览器解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于IE6,是否有 -moz-user-select / -webkit-user-select

Is there any equivalent for -moz-user-select / -webkit-user-select for IE6 ?

我希望我的网页上的文字不能在所有主流浏览器中选择。

I would like the text on my page not to be selectable in all major browsers.

最好的解决方案?

推荐答案

如果这是一个小的元素掩蔽,我会去与一个空的DIV文本,并给予DIV绝对位置,z-index高于文本。确保DIV正在弯曲一切。

if this is for a small element masking, i will go with have an empty DIV over the text, and giving the DIV an absolute position with z-index higher than the text's. make sure the DIV is coving everything.

这篇关于不可选文字 - 跨浏览器解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆