<table width="100%">
<tr>
<td height="26" align="right" bgcolor="#F1F9FB" class="zt05" style="width: 13%">到货地址:</td>
<td height="26" align="left" bgcolor="#FFFFFF" class="zt05" style="width: 20%" colspan="3">
<div style="WIDTH: 100% ; POSITION: absolute ; "align="center" >
<asp:TextBox ID="txt" runat="server" Width="85%" Height="15px"></asp:TextBox>
</div>
<div style="WIDTH: 100%; POSITION: absolute ; CLIP: rect(2px 100% 21px 90%); " align="center">
<asp:DropDownList ID="drp" runat ="server" Width="86%" Height="25px"></asp:DropDownList>
</div>
</td>
<td height="26" align="right" bgcolor="#F1F9FB" class="zt05" style="width: 13%"></td>
<td height="26" align="left" bgcolor="#FFFFFF" class="zt05" style="width: 20%">
</td>
</tr>
</table>在IE6中,显示正常,在IE7,IE8中显示比例,位置都错,而去掉 POSITION: absolute ; 后两个控件又重叠不起来,头疼,高手帮解决下
<tr>
<td height="26" align="right" bgcolor="#F1F9FB" class="zt05" style="width: 13%">到货地址:</td>
<td height="26" align="left" bgcolor="#FFFFFF" class="zt05" style="width: 20%" colspan="3">
<div style="WIDTH: 100% ; POSITION: absolute ; "align="center" >
<asp:TextBox ID="txt" runat="server" Width="85%" Height="15px"></asp:TextBox>
</div>
<div style="WIDTH: 100%; POSITION: absolute ; CLIP: rect(2px 100% 21px 90%); " align="center">
<asp:DropDownList ID="drp" runat ="server" Width="86%" Height="25px"></asp:DropDownList>
</div>
</td>
<td height="26" align="right" bgcolor="#F1F9FB" class="zt05" style="width: 13%"></td>
<td height="26" align="left" bgcolor="#FFFFFF" class="zt05" style="width: 20%">
</td>
</tr>
</table>在IE6中,显示正常,在IE7,IE8中显示比例,位置都错,而去掉 POSITION: absolute ; 后两个控件又重叠不起来,头疼,高手帮解决下
看看在各个IE之间的区别吧
写这参照CSSHACKER做,兼容浏览器