![](/img/trans.png)
[英]Using Javascript, what is the method to get an element, based on the text between the opening and closing tags?
[英]text is not allowed between starting and closing tags of an element <table>
玩桌子時我有一個錯誤說:
"text is not allowed between starting and closing tags of an element table"
表是這樣的......
<table id="Content2" class="createAccountTable" cellpadding="0" cellspacing="0" style="width: 240px;">
<tr>
<td colspan="2" align="left" valign="top" class="topicStyle">
<h3>Order Summary</h3>
</td>
</tr>
<tr align ="center">............
謝謝你們!!
如果您使用的是 Visual Studio,它會抱怨您的 HTML 是否違反了基本的 HTML 1.0 架構(或您在 DOCTYPE 指令中定義的任何架構)。這並不一定意味着您的 HTML 不會呈現,但您在技術上可能不是XHTML 兼容。
您可以將整個 HTML 剪切並粘貼到XHTML 驗證器中以檢查合規性。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.