<ItemTemplate>
<tr height = "25">
<td colspan = "3"><span class = "text">
<%# DataBinder.Eval(Container.DataItem, "ProductID") %></span></td>
<td colspan = "4"><span class = "text">
<%# DataBinder.Eval(Container.DataItem, "ProductName") %></span></td>
</tr>
</ItemTemplate>编译错误:Validation (XHTML 1.0 Transitional): Attribute 'height' is not a valid attribute of element 'tr'.
怎么解决啊,为什么编译有错也能运行?
<tr height = "25">
<td colspan = "3"><span class = "text">
<%# DataBinder.Eval(Container.DataItem, "ProductID") %></span></td>
<td colspan = "4"><span class = "text">
<%# DataBinder.Eval(Container.DataItem, "ProductName") %></span></td>
</tr>
</ItemTemplate>编译错误:Validation (XHTML 1.0 Transitional): Attribute 'height' is not a valid attribute of element 'tr'.
怎么解决啊,为什么编译有错也能运行?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
所以你写的这个属性不标准,验证不通过
修改如下:
<tr style="height:200;">