css folding style (1) - three ways to use css style

黄舟
Release: 2016-12-28 15:59:04
Original
2018 people have browsed it

css folding style (1) - three ways to use css style

1. The declaration tag of css tells the browser what form it should use to parse you, usually: Because html5 supports downward compatibility, see the details Pictured above.

2. How to use css style:
(1) Internal link style sheet:
demo.html

  
  
  
    内链样式使用  
      
  
  
    

内链样式使用

内链样式使用
Copy after login

(2) Embedded style sheet:
demo .html

  
  
  
      
    嵌入式样式  
      
  
      
  
    

嵌入式样式

嵌入式样式
Copy after login

(2) Introduced style sheet:
demo.htnl

  
  
  
    引入式样式  
      
      
         
      
      
     
  
  
    

引入式样式

百度

引入式样式

css的html选择器
Copy after login

style.css

/* HTML样式定义   */  
body{  
    background-color:yellow;  
    color:#fff  
}  
  
div{  
    background:red;font-size:20px  
}
Copy after login

The above is the css folding style (1 ) - Contents on three ways to use css styles. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Related labels:
css
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!