請問我是在表格標題下面放的橫線,為什么會顯示在標題上面了
<body>
? ? <h3>成績匯總</h3>
? ? <table border="1">
? ? ? ? ? <caption>三年二班成績匯總表</caption>
? ? ? ? ? <hr>
? ? <thead>
? ? ? ? <tr>
? ? ? ? ? ? <th>科目</th>
? ? ? ? ? ? <th>分數</th>
? ? ? ? </tr>
? ? </thead>
<body>
? ? <h3>成績匯總</h3>
? ? <table border="1">
? ? ? ? ? <caption>三年二班成績匯總表</caption>
? ? ? ? ? <hr>
? ? <thead>
? ? ? ? <tr>
? ? ? ? ? ? <th>科目</th>
? ? ? ? ? ? <th>分數</th>
? ? ? ? </tr>
? ? </thead>
2020-05-07
舉報
2020-05-07
hr標簽這么使用是報錯的,需要放到td標簽中使用
<tr >
? ? ? ? ? ? <td? colspan="2"><hr /></td>
</tr>