我有一个表在chrome和firefox中正确显示但在IE中没有显示。问题是我用作记录之间的分隔符的图像,IE中的位置不正确
<td colspan="2" bgcolor="#EFEFEF" height="100%">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width:250px !important;" colspan="1"><img src="../../images/dot.gif" width="163" height="1"></td>
<td width="1" background="../../images/white-dot.gif"></td>
<td><img src="../../images/dot.gif" width="163" height="1"></td>
</tr>
<% while not kitemRecordset.EOF
ItemId = itemRecordset.fields("WORKITEM_ID")
itemView= ItemId &" "& itemRecordset.fields("ITEM_SHO")
%>
<tr>
<td style="width:250px !important; word-break: break-all;"><a href="../item/_item.asp?item_id=<%=ItemId%>&hometoURL=<%=Server.URLEncode(navpath & "/de/ti/pl.asp")%>" >
<%=itemView%></a></td>
//problem here
<td background="../../images/white-dot.gif"><img src="../../images/white-dot.gif" width="1" height="8"></td>
<td style="width:250px !important; word-break: break-all;"><%=itemRecordset.fields("item_Release")%></td>
</tr>
<%ticketWorkitemRecordset.MoveNext
If not itemRecordset.EOF then
%>
<tr>
<td align="center" class="subnav" colspan="3" height="1"><img src="../../images/white-dot.gif" width="100%" height="1"/></td>
</tr>
<%end if%>
<%
wend %>
</table>
</td>
答案 0 :(得分:0)
通过添加style =“width:250px!important;”解决了问题在头形式