這段代碼有什么問題,為什么沒有實現成績表幾個字下方的換行?
我明明輸入了一個<br/>,但沒有效果,如果我多輸入一個<br/>就能夠換行,但卻換了兩行。。。大神們這個是什么問題
<!DOCTYPE html>
<html>
<head>
? ? <meta charset="UTF-8">
? ? <title>使用thead、tbody、tfoot標簽</title>
</head>
<body>
? ? <strong>成績表</strong>
? ? <br/>
? ? <hr/>
? ? <table border="1">
? ? ? ? <caption style=text-align:left></caption>
? ? ? ? <thead style=font-weight:bolder>
? ? ? ? ? ? <tr>
? ? ? ? ? ? <td>科目</td>
? ? ? ? ? ? <td>分數</td>
? ? ? ? ? ? </tr>
? ? ? ? </thead>
? ? ? ? <tbody>
? ? ? ? ? ? <tr>
? ? ? ? ? ? <td>語文</td>
? ? ? ? ? ? <td>99</td>
? ? ? ? ? ? </tr>
? ? ? ? ? ? <tr>
? ? ? ? ? ? <td>數學</td>
? ? ? ? ? ? <td>60</td>
? ? ? ? ? ? </tr>
? ? ? ? </tbody>
? ? ? ? <tfoot>
? ? ? ? ? ? <tr>
? ? ? ? ? ? <td>總分</td>
? ? ? ? ? ? <td>159</td>
? ? ? ? ? ? </tr>
? ? ? ? </tfoot>
? ? </table>
</body>
</html>
2021-10-08
測試了加一個換行了。加2個換2行,你可以在加一個<hr> 看看結果