Disable text on web pages from being selected_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:34:22
Original
1412 people have browsed it

There are different methods for different browsers, divided into event type and attribute type. The sample code is as follows:

 

 1 <html> 2     <head> 3         <style type="text/css"> 4             body{-moz-user-select:none} 5         </style> 6     </head> 7  8 <body onselectstart="return false;"> 9     this is a test!10 </body>11 </html>
Copy after login

 

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template