第一個沒有被注釋的是我的代碼,為什么那個300不會被橫線穿過,他下面那個就會,代碼一模一樣,上一章也是這樣的,我的代碼沒有效果,我直接復制他給的代碼,一下子就生效了,這個問題是什么情況?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>刪除樣式</title>
<style type="text/css">
.oldprice{text-decoration:line-through;}
/*.oldPrice{text-decoration:line-through;}*/
</style>
</head>
<body>
<p>原價:<span class="oldPrice">300</span>元 現價:230 元</p>?
</body>
</html>
2019-12-08
oldPrice,中間P是大寫,不然對應不上下面的那個class
2019-12-11
謝謝了