一、优先级问题
内联样式表>内部样式表>外部样式表:就近原则
例如:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS优先级</title>
<link rel="stylesheet" type="text/css" href="Demo.css">
<style type="text/css">
div{
color: pink;
border: solid darkgreen;
}
</style>
</head>
<body>
<div style="color: aliceblue;border: solid darkslategrey">今天阳光明媚</div>
</body>
</html>