How CSS implements suppress text selection

Source: Internet
Author: User

How CSS implements suppress text selection:
Prohibit text is selected in general is to prevent others to copy the content of the site, of course, these can only resist some "good" friends, as long as a bit of web knowledge can easily crack these, but we do not care about this, as long as the customer needs, the programmer must be implemented, the following are the two ends of CSS style code, To achieve this function, I hope to be able to bring some help to the needs of friends.
The code is as follows:

Div{text-align:Center;vertical-align:Middle;Height:39px;Overflow:Hidden;Moz-user-select:-moz-none;-moz-user-select:None;-o-user-select:None;-khtml-user-select:None;-webkit-user-select:None;-ms-user-select:None;User-select:None;}

The above code can be implemented to prevent text in the div from being selected.
But the drawback is that the following browsers do not support this effect IE10.

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

How CSS implements suppress text selection

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.