代碼沒寫錯,但為什么提交顯示不出來效果呢
<body>
<talbe border="1">
? ? <caption>前端三劍客</caption>
? ? <tr>
? ? ? ? <th>知識點</th>
? ? ? ? <th>重要程度</th>
? ? ? ? <th>難度</th>
? ? ? ? <th>學習周期</th>
? ? </tr>
? ? <tr>
? ? ? ? <td>html</td>
? ? ? ? <td>5星</td>
? ? ? ? <td>3星</td>
? ? ? ? <td>7天</td>
? ? </tr>
? ? <tr>
? ? ? ? <td>css</td>
? ? ? ? <td>5星</td>
? ? ? ? <td>4星</td>
? ? ? ? <td>10天</td>
? ? </tr>
? ? <tr>
? ? ? ? <td>js</td>
? ? ? ? <td>5星</td>
? ? ? ? <td>5星</td>
? ? ? ? <td>20天</td>
? ? </tr>
</talbe>??
</body>
2021-08-20
table 標簽寫錯了,你看下
2021-05-20
table寫錯了
2021-05-12
table標簽檢查一下不是talbe
2021-04-20
沒有對代碼進行修改,把代碼刪掉重新編寫就可以了
2021-04-19
我把你的代碼復制到Sublime里看了下,發現你的代碼與代碼的行距太大了,而且也沒加<thead></thead><tbody></tbody>,你加上試試。我也幫你打了下
<head>
? ? <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
? ? <title>Document</title>
<style>
table{
? ? border-collapse:collapse;
? ? margin:0 auto;
? ? width:300px;
? ? height:150px;
}
caption{
? ? font-size:20px;
? ? font-weight:bold;
}
td,th{
? ? border:1px solid black;
? ? text-align:center;
}
</style>
</head>
<body>
? ? <table>
? ? ? ? <caption>前端三劍客</caption>
? ? ? ? <thead>
? ? ? ? ? ? <tr>
? ? ? ? ? ? ? ? <th>知識點</th>
? ? ? ? ? ? ? ? <th>重要程度</th>
? ? ? ? ? ? ? ? <th>難度</th>
? ? ? ? ? ? ? ? <th>學習周期</th>
? ? ? ? ? ? </tr>
? ? ? ? </thead>
? ? ? ? <tbody>
? ? ? ? ? ? <tr>
? ? ? ? ? ? <td>html</td>
? ? ? ? ? ? <td>5星</td>
? ? ? ? ? ? <td>3星</td >
? ? ? ? ? ? <td>7天</td>
? ? ? ? ? ? </tr>
? ? ? ? ? ? <tr>
? ? ? ? ? ? <td>css</td>
? ? ? ? ? ? <td>5星</td>
? ? ? ? ? ? <td>4星</td >
? ? ? ? ? ? <td>10天</td>
? ? ? ? ? ? </tr>
? ? ? ? ? ? <tr>
? ? ? ? ? ? <td>js</td>
? ? ? ? ? ? <td>5星</td>
? ? ? ? ? ? <td>5星</td >
? ? ? ? ? ? <td>20天</td>
? ? ? ? ? ? </tr>
? ? ? ? </tbody>
? ? </table>
</body>