Blogger Information
Blog 30
fans 0
comment 0
visits 22426
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
1009作业: css元素来源有哪些,优先级冲突的解决方案
归宿的博客
Original
642 people have browsed it

1009css 作业

  1. <!-- 引入外部样式 -->
  2. `<link rel="stylesheet" href="style.css" />`
  3. <!-- 当前页面样式 -->
  4. <style>
  5. h1 {
  6. color: blue;
  7. }
  8. </style>

</head>
<body>
<header>

<!-- 行内样式 -->

<h1 style="background: yellow">css元素来源有哪些</h1>

  1. <p class="title">css优先级冲突的解决方案</p>
  2. <p class="content">
  3. 1.源码的顺序(css同样属性的顺学来决定优先级;) <br />
  4. 2.根据样式表的来源(外部样式,当前页面样式,行内样式); <br />
  5. 3.选择器的优先级:tag < class < id; <br />
  6. 4.可以使用强制执行 !important;
  7. </p>

</header>

Correcting teacher:天蓬老师天蓬老师

Correction status:qualified

Teacher's comments:css就是那种看上去好简单, 一看就会, 一写就废的技术
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post