当前位置 博文首页 > xixi:覆盖 CSS 的方法 优先级别
<style>
? body {
??? background-color: black;
??? font-family: Monospace;
??? color: green;
? }
? #orange-text {
??? color: orange;
? }
? .pink-text {
??? color: pink !important;
? }
? .blue-text {
??? color: blue;
? }
</style>
<h1 id="orange-text" class="pink-text blue-text" style="color: white">Hello World!</h1>