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>

相关文章:

  • 2021-12-23
  • 2021-12-18
  • 2021-09-17
  • 2021-12-08
  • 2021-09-07
  • 2021-09-15
猜你喜欢
  • 2022-01-05
  • 2021-12-23
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
相关资源
相似解决方案