最高权值
<!DOCTYPE html>
<html>
<head>
<title>!important</title>
<style type="text/css">
p{color: red;}
.blue{color: blue;}
</style>
</head>
<body>
<p>
red
</p>
<p class="blue">
red
</p>
</body>
</html>
两个red分别一红一绿
!important能使相应的css样式变成最高权值,
<!DOCTYPE html>
<html>
<head>
<title>!important</title>
<style type="text/css">
p{color: red!important;}
.blue{color: blue;}
</style>
</head>
<body>
<p>
red
</p>
<p class="blue">
red
</p>
</body>
</html>