如何禁用文本选择? (CSS?) [英] How to disable text selection? (css?)

查看:68
本文介绍了如何禁用文本选择? (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

推荐答案

kj写道:
有没有办法在网页中禁用文本选择(或者至少让用户看不到它)?


不用带有CSS或HTML的Leastways,不是以可靠的方式,而不是在没有让很多访客烦恼的情况下获得


如果有办法控制所选文字及其背景的呈现方式
Is there any way to disable text selection in a web page (or at
least render it invisible to the user)?
No. Leastways not with CSS or HTML, not in a reliable fashion, and not
without really annoying many of your visitors.
If there is a way to control how selected text and its background
are rendered







-

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



No

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


kj写道:
有没有办法在网页中禁用文本选择(或者至少让用户看不到它?)
Is there any way to disable text selection in a web page (or at
least render it invisible to the user)?




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

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

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

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


-

== Dan ==

Dan的邮件格式网站: http://mailformat.dan.info/

Dan'的网页提示: http://webtips.dan。 info /

Dan'的域名网站: http: //domains.dan.info/



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/


2004年2月13日星期五16:23:08 +0000(UTC),kj< no ** **@please.com>写道:
On Fri, 13 Feb 2004 16:23:08 +0000 (UTC), kj <no****@please.com> wrote:


是否有任何方法可以禁用网页中的文本选择(或者至少使其对用户不可见)?


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




将所有文字发布为图像。


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


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



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?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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