Firefox 换行问题
程序代码:
<%
while not rs.eof
%>
<div id= "left_info_index_box ">
<div id= "left_info_index_img "> <img src= " <%=rs( "M_foto ")%> " alt= " <%=rs( "M_title ")%> " width= "106 " height= "106 "> </div>
<div id= "left_info_index_content ">
<p> <%=rs( "M_title ")%> </p>
<p> <%=rs( "M_content ")%> </p>
<p> <br /> <%=rs( "M_putname ")%> <%=rs( "M_puttime ")%> </p>
</div>
<div class= "clear-float " style= "height:110px "> </div>
</div>
<%
rs.movenext
wend
%>
CSS代码部分:
#left_info_index_box{margin-left:10px;margin-right:10px;overflow:hidden;width:100%;height:110px;}
#left_info_index_img{position:relative;float:left;width:110px;margin:0 0 0 0;}
#left_info_index_content{position:relative;float:left;text-align:left;width:470px;word-break:break-all;overflow:auto;}
可是当我 <%=rs( "M_content ")%> 内容足够长的时候,超出宽度的时候,FIREFOX显示不正常,落到下面去了,我用IE显示正常,不知道是什么原因,指教…………
------解决方案--------------------设 <p> 的margin-top: 0px;试试