1、css有四种引入方式,行内式,嵌入式,链接式,导入式。其中导入式,一般不用,因为会先加载html,然后在导入,会导致页面没有样式效果,优先级分别是。行内式>嵌入式>链接式。
<span style="color:red;">行内式</span>  
直接写在html标签中

嵌入式

//写在style标签中的css样式
p{
    color:blue;
}

链接式

<link href="test.css" type="text/css" rel="stylesheet" />
写在link 标签下的

 

相关文章:

  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-11-29
  • 2022-01-21
  • 2022-02-17
  • 2021-12-11
猜你喜欢
  • 2022-01-06
  • 2022-01-17
  • 2022-12-23
  • 2021-07-05
  • 2022-03-01
  • 2022-01-05
  • 2021-06-23
相关资源
相似解决方案