如何禁用文本选择

如何禁用文本选择

本文介绍了如何禁用文本选择? (CSS?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




有没有办法在网页中禁用文字选择(或者

最少渲染它对用户不可见)?


如果有办法控制所选文字及其背景如何渲染,那么可以通过设置

来实现所需的效果这些参数与常规文本匹配。通过这种方式,即使选择了文本,用户也不会看到它是。


(我认为这是可以控制的通过

css,但我在我的css书中找不到任何东西,或者在我的谷歌搜索中找到了
。也许我没有使用正确的搜索

关键字。)


谢谢!


kj



Is there any way to disable text selection in a web page (or at
least render it invisible to the user)?

If there is a way to control how selected text and its background
are rendered, then the desired effect could be achieved by setting
these parameters to match those of regular text. In this way, even
if text was selected, the user would not see that it was.

(I thought that this is something that may be controlled through
css, but I have not been able to find anything in my css book, or
in my google searches. Maybe I''m not using the right search
keywords.)

Thanks!

kj

推荐答案







-

David Dorward< http://dorward.me.uk/>



No

--
David Dorward <http://dorward.me.uk/>





又一个变种在我如何强迫用户'

浏览器执行一些非常烦人的事情,或禁用它的一些

功能的旧主题?我在我的网站上处理这类事情:




-

== Dan ==

Dan的邮件格式网站:

Dan'的网页提示:

Dan'的域名网站:



Yet another variant on the same old theme of "How do I force the user''s
browser to do something really annoying, or to disable some of its
features?" I deal with that sort of thing in my site:

http://webtips.dan.info/force.html

--
== Dan ==
Dan''s Mail Format Site: http://mailformat.dan.info/
Dan''s Web Tips: http://webtips.dan.info/
Dan''s Domain Site: http://domains.dan.info/





将所有文字发布为图像。


不要将页面上传到服务器。


你想要什么?您的内容非常有价值,不应该被复制并粘贴,卖掉一本书。



Post all your text as images.

Don''t uplload the page to the server.

What do you want? Your content is so valuable it shouldn''t be copied and
pasted, sell a book.


这篇关于如何禁用文本选择? (CSS?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 04:37