Create non-selectable text using CSS3_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:58:15
Original
1109 people have browsed it

下面的例子展示了在HTML5中你如何使用CSS建立不可选的文字。

 

 

Html代码  

  1.   
  2.   
  3.   
  4.     Creating non-selectable text using CSS  
  5.       
  6.   
  7.   
  8.    
  9.     
    [selectable] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur ornare, urna placerat condimentum vehicula, magna est suscipit leo, auctor laoreet erat massa eget tellus. Etiam pharetra, orci eu gravida tempus, enim est venenatis diam, id facilisis justo ante ut arcu. Sed nibh eros, porta ac porta ac, fermentum ut ante. Etiam pulvinar consectetur urna sit amet fermentum. Aliquam quis pellentesque tortor. In ut lobortis enim. Pellentesque luctus orci nec massa lacinia consectetur. Etiam cursus, leo et pellentesque tempus, diam elit interdum ipsum, sed pulvinar nibh justo vel urna. Phasellus ligula elit, sodales eget aliquet et, ullamcorper ut lorem. Praesent eget quam id ligula iaculis tincidunt eu et nulla. Ut dui dui, dictum sed lobortis eu, porta nec urna. In adipiscing, massa sed scelerisque elementum, tortor massa cursus velit, ut tincidunt mi lacus id magna. Morbi vestibulum venenatis massa sit amet convallis. Aliquam erat volutpat.
      
  10.    
    [not selectable] For from the lake before, from the pain that falls. But happy pain, every body in life's mourning, I gave the goal of football. It is the greatest element of the universe. Aeneas like ligula and the very pharetra of the sardines. It's going to be a fun and exciting time. The mass of the ants, soft and soft to decorate, so that it does not cost anything. It is the concern of the earth that the members of the lobortis euismod will be pure. Live neither urn nor nibh ronchus who needs just. Until my lake, my sardines, and my sad football, my fringes. Maecenas's life's hatred of a twisted course will leave you in need. Let it be pure fear. I'll be in the lobby and it won't be just an easy time. If the customer is very painstaking, he will be able to find the customer. Tomorrow needs real fear.
      
  11.    
    [selectable] This is an easy pancake. It's a disgusting mass, to drink football, like life. From my heart, I need to prepare my bow. But it will take time to live with them. It's just the lobby itself. Until the bed and the urn are piled up. But now you are happy. In front of him, first of all, in the mouths of the hospital, he placed the beds of care for the mourners and the sick; You are not right. For there is no profit or loss as they dye. Maecenas had no anxiety to adorn the time with fear. And they pushed it away.
      
  12.   
  13.   

 

 源码下载:

creating-non-selectable-text-using-css.zip

Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!