添加CSS的四种方式

1、直接添加在HTML的标识符(标签)里:
 <p style="color: blue;font-size: 12pt">样式</p>


2、添加在HTML的头信息标识符<head>里:
 <head>
 <style type="text/css">
 ……
 </style>
 </head>


3、连接样式表:
 <head>
  <link rel="stylesheet" href="*.css" type="text/css">
 </head>


4、联合使用样式表:
 <head>
 <style type="text/css">
 <!--
  @import"*.css"
  其他样式表的声明
 -->
 </style>
 </head>

原文地址:https://www.cnblogs.com/daimaku/p/4189384.html