为了账号安全,请及时绑定邮箱和手机立即绑定

有哪里错误吗?


<style type="text/css">
/*h1,span{color:red;}*/
p.first, p#second>span{color:green;}
</style>

</style>


正在回答

7 回答

.first,span{
    color:green;
}


0 回复 有任何疑惑可以回复我~

.first. 去掉p

0 回复 有任何疑惑可以回复我~
<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>


0 回复 有任何疑惑可以回复我~

不用 P

0 回复 有任何疑惑可以回复我~

可能是你的逗号后面多一个空格,不过我复制你的代码是可以运行的

0 回复 有任何疑惑可以回复我~

.first,#second

0 回复 有任何疑惑可以回复我~

不用加p

1 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

有哪里错误吗?

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号