IE中多个div出现时显示成梯形,Firefox中显示正常,请各位xdjm赐教!多谢了

css_problem 2007-11-15 07:25:33
如题,连续的几个<div></div> <div></div> <div></div> 外层还有<div> ,在Firefox中显示的时对齐的一列,但在IE中显示成了一个斜梯度(从上到小逐渐减小)。请各位帮忙看看时什么问题,多谢了!
...全文
101 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
css_problem 2007-11-16
  • 打赏
  • 举报
回复
如图片中每一行的代码时这样的
<div class="result" style="clear:both">
<div id="others_result_vote_buttons" class="result_vote_buttons" style="clear:both">
<a href="javascript:void(0)" id="" title="支持" onclick="support()" class="result_vote_up hover" positive="1" source="others">vote up</a>
<a href="javascript:void(0)" id="" title="反对" onclick="unsupport()" class="result_vote_down hover" positive="0" source="others" >vote down</a>
</div>
<div id="title_snippet_container_prototype" class="title_snippet" >
<cite id="" class="others">
<a id="" href="#" target="_blank">qwer</a>
</cite>
<p id="" class="snippet">12345</p>
</div>
<div id="" class="last_recommend" style="display: none;" style= />
</div>

外层还有其它的<div></div>

不好意思,图片贴不出来,大体效果如下:
---------------
-------------
-----------
---------
-------
css_problem 2007-11-16
  • 打赏
  • 举报
回复
后来去掉<div id= " " class= "last_recommend " style= "display: none; " style= /> 就正常了,而我本身的css里面并没有last_recommend,在css手册中也没有整个关键字,请知道的xdjm们说一下,谢谢了!
liveforever_1981 2007-11-16
  • 打赏
  • 举报
回复
这种 是浮动造成的

保证 一行 能放开你浮动的容器
有些事要定宽度的

注意清浮动
yzxlyd 2007-11-15
  • 打赏
  • 举报
回复
具体发页面过来看一下呀。
balibell 2007-11-15
  • 打赏
  • 举报
回复
代码没?完整代码贴上来啊!

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧