Css disables the specified text code instance and css disables the text instance.

Source: Internet
Author: User

Css disables the specified text code instance and css disables the text instance.

Css disables the selection of the specified text code instance:
The actual encoding may have such a requirement, so that the specified element cannot be selected. The following describes how to achieve this through code instances. The Code is as follows:

<! DOCTYPE html>  

The above code disables the selection of elements in the div, but this code is still flawed at present, because the browsers below IE9 do not support it, you need to use javascript to make it compatible with all mainstream browsers. For details, refer to Section 1 "prohibit selected text code instances" compatible with all browsers.

The original address is: http://www.softwhy.com/forum.php? Mod = viewthread & tid = 14514.

For more information, see: http://www.softwhy.com/divcss/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.