插入CSS的方法

传送门

 
 选择器  selector {declaration1; declaration2; ... declarationN }
 
  例:   p { text-aligh:center; }
 declaration  property: value
 选定多个  table, ul, ol { ... }
   
   
   
   
   
   
   
 外部样式表  《link rel="stylesheet" type="text/css" href="mystyle.css"》
 内部样式表   《style type="text/css"》《/style》
 内联样式  尽量不用
《p style="..."》
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

 

posted @ 2017-06-13 14:11  懒虫哥哥  阅读(228)  评论(0编辑  收藏  举报