浮动Div问题 [英] Floating Div problem

查看:70
本文介绍了浮动Div问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我已经试过从星期日开始的六种方式来解决这个问题,但是我很失意并且要求帮助在这一点上。


以下网站仅在Mozilla中呈现*非常奇怪。 IE似乎很好地解决了这个问题:

http ://pythonphotos.org


页面中包含的图像应该漂浮在

秒H2之下,而是全部推送到页面底部的方式

(但在页脚上方)。使用

''清楚地添加图像下方的元素:两者''也没有帮助。


您可以在细节上看到相同的问题页面:
http://pythonphotos.org/archive/181/查看


我尝试过使用额外的跨度,包含div,并调整CSS

几乎我能想到的每一种方式一切都无济于事。 IE

(具有讽刺意味的是)使网站按预期呈现,Mozilla也没有。


有什么建议吗?


- Michael Bernstein

Hello,

I''ve tried to solve this problem six ways from sunday, but I''m
conceding defeat and asking for help at this point.

The following site is rendering *very* oddly in Mozilla only. IE seems
to lay it out just fine:

http://pythonphotos.org

The images included in the page which should be floating below the
second H2, are instead pushed all the way to the bottom of the page
(but just above the footer). Adding an element below the images with
''clear: both'' didn''t help either.

You can see the same problem on a detail page as well:
http://pythonphotos.org/archive/181/view

I''ve tried using extra spans, containing divs, and adjusting the CSS
in just about every way I can think of, all to no avail. IE
(ironically enough) renders the site as intended, and Mozilla doesn''t.

Any suggestions?

- Michael Bernstein

推荐答案

2004年5月10日星期一,Michael Bernstein写道:
On Mon, 10 May 2004, Michael Bernstein wrote:
我试图从星期天开始六种方式解决这个问题,但是我在这一点上承认失败并寻求帮助。
I''ve tried to solve this problem six ways from sunday, but I''m
conceding defeat and asking for help at this point.




验证第一。之后提问。


bookmarklets在W3C,验证非常简单;或者你可能希望
更喜欢web开发者的工具栏适用于Mozilla / Firefox的
http://www.chrispederick。 com / work / firefox / webdeveloper /

在基础工作完成之前,摆弄细节是徒劳的。

老实说 - 不管是什么tag-soup slurpers会要你

相信。



Validate first. Ask questions afterwards.

The "bookmarklets" at W3C make validation very easy; or you might
prefer the "web developer''s toolbar" for Mozilla/Firefox at
http://www.chrispederick.com/work/firefox/webdeveloper/

Fiddling with details is futile until the groundwork had been done.
Honestly - no matter what the tag-soup slurpers will want you to
believe.


" Alan J. Flavell" < FL ***** @ ph.gla.ac.uk>在留言新闻中写道:< Pi ******************************* @ ppepc56.ph .gla.ac.uk> ......
"Alan J. Flavell" <fl*****@ph.gla.ac.uk> wrote in message news:<Pi*******************************@ppepc56.ph .gla.ac.uk>...
2004年5月10日星期一,Michael Bernstein写道:
On Mon, 10 May 2004, Michael Bernstein wrote:
我试图从星期天开始六种方式解决这个问题,但我''
承认失败并在此时寻求帮助。
I''ve tried to solve this problem six ways from sunday, but I''m
conceding defeat and asking for help at this point.



首先验证。之后提出问题。
[snippage]
摆弄细节是徒劳的,直到基础工作完成。
老实说 - 无论标签汤羹会让你相信什么? 。



Validate first. Ask questions afterwards.
[snippage]
Fiddling with details is futile until the groundwork had been done.
Honestly - no matter what the tag-soup slurpers will want you to
believe.




无效是次要的,只能在

中加入其他有效的CSS,以修复IE5渲染中的奇怪现象表格文字有点太大了。

我现在已将其删除,HTML和CSS验证,我的Mozilla

渲染问题仍然存在。


请帮忙吗?


- Michael Bernstein



The invalidity was minor, and only put into otherwise valid CSS in
order to fix an oddity in IE5''s rendering of table text a bit too big.
I''ve removed it now, the HTML and CSS validate, and my Mozilla
rendering problem remains.

Help, please?

- Michael Bernstein


2004年5月10日21:43:48 - 0700,Michael Bernstein< we ****** @ cox.net>写道:
On 10 May 2004 21:43:48 -0700, Michael Bernstein <we******@cox.net> wrote:
无效是次要的,只有在其他有效的CSS中才能用来修复IE5中表格文本渲染的奇怪程度。
我现在已将其删除,HTML和CSS验证,我的Mozilla
渲染问题仍然存在。

请帮助吗?
The invalidity was minor, and only put into otherwise valid CSS in
order to fix an oddity in IE5''s rendering of table text a bit too big.
I''ve removed it now, the HTML and CSS validate, and my Mozilla
rendering problem remains.

Help, please?




你正在使用的宽度黑客是什么?在我看来,这可能是导致b / b
麻烦的原因。尝试消除黑客并查看它是否解决了问题。



What''s this width hack you''re using? Seems to me this might be a cause of
trouble. Try eliminating the hack and see if it solves the issue.


这篇关于浮动Div问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆