CSS樣式表引入的三種方式

方式一:內聯樣式表 在標籤的內部書寫,如:javascript <div style="background-color:red;"> </div> 方式二:內部樣式表 在head標籤中聲明style標籤而後在其中書寫css樣式,如:css <html> <head> <style type="text/css"> .test { background-color:red; } </style>
相關文章
相關標籤/搜索