<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.one.two{
color:blue;
}
.three.four{
color:yellow;
}
</style>
</head>
<body>
<p class="one two three four">我的颜色是什么</p>
</body>
</html>
请各位大神帮忙解答一下,我同时规定了两组样式,但是实际显示却显示后者,这是为什么呢?我这种写法是不是错误的?
<p class="one two three four">
同时匹配 .one.two
和 .three.four
两个选择器,后者覆盖前者。