请查看以下代码:
<table border="0" width="100%" id="id1">
<tr>
<td width="15%" nowrap>
<Label class="someClass"> Testing </Label>
</td>
//Error complaining at below line
<td width="30%" class="someClass" nowrap>
<html-el:text styleClass="Test" property="someProperty" size="30" maxlength="10"/>
</td>
</tr>
</table>
对于第一个 td 我关闭了它,但在第二个 td 它抱怨 IWAK0061E开始标记()未关闭。
我可能知道出了什么问题吗?
答案 0 :(得分:-1)
我不知道你为什么使用这种奇怪的html语法,但是我会用:
<table border="0" width="100%" id="id1">
<tr>
<td width="15%">
<Label class="some class"> Testing </Label>
</td>
<td width="30%" class="some class">
<textarea property="some property" maxlength="10" class="some class"></textarea> // all visual stuff is used with class tag
<input property="some property" maxlength="10" class="some class"> // or input with one line field
</td>
</tr>
</table>
此外,HTML5不支持nowrap属性。改用CSS。