慕田峪3426321
2017-12-14 10:24
<style type="text/css">
/*h1,span{color:red;}*/
p.first, p#second>span{color:green;}
</style></style>
				.first,span{
    color:green;
}
				.first. 去掉p
				<html>
<head>
<meta http-equiv="Content-type" content="text/html" charset="uft-8">
<title>html</html>
<style type="text/css">
/*h1,span{color:red;}*/
p.first, p#second>span
{
color:green;
}
</style>
</head>
<body>
<p class="first">absdasbaskbkcbakbckbcbxbxc</p>
<p id="second">acbabc<span>ashbcabcbkcb</span></p>
</body>
</html>
				不用 P
				可能是你的逗号后面多一个空格,不过我复制你的代码是可以运行的
				.first,#second
				不用加p
初识HTML(5)+CSS(3)
1230253 学习 · 19084 问题
相似问题