這個代碼也有問題嗎
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>分組選擇符</title>
<style type="text/css">
.first,#second {color:green;}
</style>
</head>
<body>
? ? <h1>勇氣</h1>
? ? <p class="first">三年級時,我還是一個<span>膽小如鼠</span>的小女孩,上課從來不敢回答老師提出的問題,生怕回答錯了老師會批評我。就一直沒有這個勇氣來回答老師提出的問題。學校舉辦的活動我也沒勇氣參加。</p>
? ? <p >到了三年級下學期時,我們班上了一節公開課,老師提出了一個很<span id="second">簡單</span>的問題,班里很多同學都舉手了,甚至成績比我差很多的,也舉手了,還說著:"我來,我來。"我環顧了四周,就我沒有舉手。</p>
? ? <img src="http://img1.sycdn.imooc.com//52b4113500018cf102000200.jpg" >
</body>
為啥我這種就不能提交?
2016-02-24
你把題干改了 所以就識別不了了,你對<span>添加了id屬性,然后進行選擇,做法是沒錯的
2016-02-24
漏了span
2016-02-24
<style>h1,.first,#second span{color:green;}</style>
2016-02-24
漏掉span了:
把.first,#second {color:green;}改成.first,#second span{color:green;}
題目要求把“簡單”也改成green