<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>important</title>
<style>
.box{width:100px;height:100px;background:red !important; background:pink;}
/*
在IE6下 在important 后边再加一条同样的样式,会破坏掉important的作用,会按照默认的优先级顺序来走
*/
</style>
</head>
<body>
<div class="box" style="background:#000;"></div>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>important</title>
<style>
.box{width:100px;height:100px;background:red !important; background:pink;}
/*
在IE6下 在important 后边再加一条同样的样式,会破坏掉important的作用,会按照默认的优先级顺序来走
*/
</style>
</head>
<body>
<div class="box" style="background:#000;"></div>
</body>
</html>