有問題嗎?
<html>
<head>???
<title>迪巴拉</title>???
???? <style>
???? h1{text-align:center;font-size:40px;color:purple;}
???? p{font-family:"微軟黒雅";font-size:25px;line-height:2em;text-indent:2em;}
???? .di{text-decoration:underline;font-size:20px;font-weight:bold;font-style:italic;color:blue;}
???? #ba{text-decoration:line-through;}
???? </style>
</head>
<body>
??? <h1>保羅.迪巴拉</h1>
??? <p>迪巴拉效力于<span class="di">尤文圖斯</span>。多次入選<span id="ba">阿根廷</span>國家隊(duì),并在<span class="di">2018俄羅斯世界杯</span>對陣克羅地亞時(shí)替補(bǔ)登場</p>,在場上司職<span id="ba">偽九號</span></p>
</body>
</html>
2018-10-14
對陣克羅地亞時(shí)替補(bǔ)登場</p>,在場上司職<span id="ba">偽九號</span></p>
</body>
</html>
這里
“,在場上司職"
無對應(yīng)標(biāo)簽
2018-11-02
我這樣理解不知對不對,id選擇器在文檔用于幾次沒有限制,但它只對應(yīng)單獨(dú)的唯一的元素。?id="ba"此元素出現(xiàn)兩次,已不是唯一的,估計(jì)是有點(diǎn)問題吧