我需要限制在表中自動添加tbody標籤(在瀏覽器視圖中)。 見我下面輸入HTML代碼: -如何在瀏覽器視圖中將自動插入的tbody元素限制爲表格元素?
<html>
<body>
Please enter your name:
<br/>
<table>
<tr>
<td>hello</td>
</tr>
</table>
</body>
</html>
我需要限制在表中自動添加tbody標籤(在瀏覽器視圖中)。 見我下面輸入HTML代碼: -如何在瀏覽器視圖中將自動插入的tbody元素限制爲表格元素?
<html>
<body>
Please enter your name:
<br/>
<table>
<tr>
<td>hello</td>
</tr>
</table>
</body>
</html>
我不認爲你可以阻止這種行動
由於瀏覽器自動添加tbody元素而呈現
不過你不能試圖通過動態刪除元素Javascript
。
你不能限制自動添加標籤TBODY行動
您可以刪除明確Please refer to remove tbody
Thanks @ Amol 。我在這裏找到解決方案http://stackoverflow.com/questions/15870313/html-agility-pack-appending-thead-tbody-tfoot-in-existing-html-table?answertab=active#tab-top –
是其作品。默認情況下,如果html包含tbody。如何解決它? –
使用jQuery刪除它 –
感謝您的回覆@ Siddhesh Kulkarni。我在這裏找到了解決方案http://stackoverflow.com/questions/15870313/html-agility-pack-appending-thead-tbody-tfoot-in-existing-html-table?answertab=active#tab-top –