[英]Validation (XHTML 1.0 Transitional): Element 'html' cannot be nested within element 'div'
[英]Validation(HTML5) The element i cannot be nested within the element button
<asp:Button ID="Button2" runat="server" class="subscr-next" ><i class="icon-arrow-right"></i></asp:Button>
我有一個准備好的方案,我想轉換為asp.net。但是我遇到了兩個錯誤。
首先,Validation(HTML5)我無法將元素嵌套在元素按鈕中
其次,元素按鈕的開頭廣告結束標記之間不得包含內容。
我對此表示懷疑,但是標簽之間不能插入圖標。
謝謝答案
將asp.net按鈕替換為html5按鈕,並在其上添加runat="server"
屬性。 這將起作用。 例如,
<button id="Button2" runat="server" class="subscr-next"><i class="icon-arrow-right"></i></button>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.