/*由于div是继承过来影响文字的,所以!important无法提升它的权重,权重该是0还是0,不影响就近原则*/
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
div{
color:blue!important;
}
ul{
color:red;
}
</style>
</head>
<body>
<div>
<ul>
<li>猜猜我是什么颜色?</li>
</ul>
</div>
</body>
</html>