额外的垂直空间来自哪里? [英] Where is the extra vertical space coming from?

查看:65
本文介绍了额外的垂直空间来自哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这让我很难过。我试图尽量使用尽可能少的空间

我文档的顶部,但Firefox / Mozilla坚持在任何元素之前放置垂直

空格。 IE正确显示它(如我所愿)。在一个

点,我设置了一些负的顶部边距,这使得图形在IE中的页面上方移动了

。这是链接: http://abateofnm.org/ 我试过了

重新格式化HTML以确保没有空白区域我已经尝试了设置顶部边距和填充为0的
,所有这些都没有运气。奇怪的是,

似乎是使用旗帜图像的高度作为上边距或

的东西。


-

Stan McCannUncle Pirate http://stanmccann.us/pirate.html

网站管理员/计算机中心经理,NMSU在Alamogordo

协调员,Tularosa盆地分会,新墨西哥州大学; AMA#758681; COBB

''94 1500 Vulcan(现已失事):( http: //motorcyclefun.org/Dcp_2068c.jpg

对生活的热情必须包括愿意死亡。 - RA Heinlein

This has me stumped. I am trying to use as little space as possible at
the top of my document but Firefox/Mozilla insists on placing vertical
space before any element. IE displays it correctly (as I want). At one
point, I set some negative top margins which moved the graphics above
the page in IE. Here''s the link: http://abateofnm.org/ I''ve tried
reformatting the HTML to assure there is no white space and I''ve tried
setting top margins and padding to 0, all with no luck. Strangely, it
seems to be using the height of the flag images as a top margin or
something.

--
Stan McCann "Uncle Pirate" http://stanmccann.us/pirate.html
Webmaster/Computer Center Manager, NMSU at Alamogordo
Coordinator, Tularosa Basin Chapter, ABATE of NM; AMA#758681; COBB
''94 1500 Vulcan (now wrecked) :( http://motorcyclefun.org/Dcp_2068c.jpg
A zest for living must include a willingness to die. - R.A. Heinlein

推荐答案

Uncle Pirate写道:
Uncle Pirate wrote:
这让我很难过。我试图在文档的顶部使用尽可能少的空间但Firefox / Mozilla坚持放置在任何元素之前的垂直空间.IE正确地显示它(正如我想的那样)。在一点上,我设置了一些负顶部边距,将图形移动到IE中的页面上面。这里'是链接: http://abateofnm.org/ 我试过
重新格式化HTML以确保没有空白区域我已经尝试将顶部边距和填充设置为0,所有都没有运气。奇怪的是,它似乎是我们将标志图像的高度作为上边距或
的东西。
This has me stumped. I am trying to use as little space as possible at
the top of my document but Firefox/Mozilla insists on placing vertical
space before any element. IE displays it correctly (as I want). At one
point, I set some negative top margins which moved the graphics above
the page in IE. Here''s the link: http://abateofnm.org/ I''ve tried
reformatting the HTML to assure there is no white space and I''ve tried
setting top margins and padding to 0, all with no luck. Strangely, it
seems to be using the height of the flag images as a top margin or
something.




空间毫无疑问是由第一个元素的上边距生成的H1,两个浮点数后,
。需要包含浮子并且

容器需要足够的高度。 Mozilla正在做的事情是正确的我

相信。


Louise



The space is no doubt being generated by the top margin on first element
after the two floats, H1. The floats need to be contained and the
container needs sufficient height. What Mozilla is doing is correct I
believe.

Louise


Uncle Pirate写道:< br>
Uncle Pirate wrote:
这让我很难过。我试图在我的文档顶部使用尽可能小的空间,但Firefox / Mozilla坚持在任何元素之前放置垂直空间。 IE正确显示它(如我所愿)。在一点上,我设置了一些负顶部边距,将图形移动到IE中的页面上方。这是链接: http://abateofnm.org/ 我试过了<重新格式化HTML以确保没有空白区域我已经尝试将顶部边距和填充设置为0,所有这些都没有运气。奇怪的是,它似乎是使用旗帜图像的高度作为上边距或
的东西。
This has me stumped. I am trying to use as little space as possible at
the top of my document but Firefox/Mozilla insists on placing vertical
space before any element. IE displays it correctly (as I want). At one
point, I set some negative top margins which moved the graphics above
the page in IE. Here''s the link: http://abateofnm.org/ I''ve tried
reformatting the HTML to assure there is no white space and I''ve tried
setting top margins and padding to 0, all with no luck. Strangely, it
seems to be using the height of the flag images as a top margin or
something.




为什么图像之间存在间隙布局引擎

处于标准模式时表格中的行?
http://www.mozilla.org/docs/web-developer/faq.html#gaps




布局引擎处于标准模式或几乎标准模式时,为什么表格中的文本行之间仍然存在间隙?
http://www.mozilla.org/docs/web-deve...q.html#margins


DU

-

该网站称使用Internet Explorer 5或更好......所以我切换到

Mozilla 1.7.6 :)



Why are there gaps between image rows in tables when the layout engine
is in the Standards mode?
http://www.mozilla.org/docs/web-developer/faq.html#gaps

Why are there still gaps even between text rows in tables when the
layout engine is in the Standards mode or in the Almost Standards mode?
http://www.mozilla.org/docs/web-deve...q.html#margins

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.6 :)


DU写道:
Uncle Pirate写道:
Uncle Pirate wrote:
这让我很难过。我试图在我的文档顶部使用尽可能小的空间
但Firefox / Mozilla坚持在任何元素之前放置
垂直空间。 IE正确显示它(因为我想要)。有一次,我设置了一些负顶部边距,这使得
图形在IE页面上方移动。这是链接:
http://abateofnm.org/ 我'我已经尝试重新格式化HTML以确保没有空格,我已经尝试将顶部边距和填充设置为0,所有这些都没有运气。奇怪的是,它似乎使用了标志图像的高度作为上边距或其他东西。
This has me stumped. I am trying to use as little space as possible
at the top of my document but Firefox/Mozilla insists on placing
vertical space before any element. IE displays it correctly (as I
want). At one point, I set some negative top margins which moved the
graphics above the page in IE. Here''s the link:
http://abateofnm.org/ I''ve tried reformatting the HTML to assure
there is no white space and I''ve tried setting top margins and padding
to 0, all with no luck. Strangely, it seems to be using the height of
the flag images as a top margin or something.



为什么布局引擎时表格中的图像行之间存在间隙
是否处于标准模式?
http://www.mozilla.org/docs/web-developer/faq.html#gaps

为什么在表格中的文本行之间仍然存在空白
布局引擎处于标准模式还是几乎标准模式?
http://www.mozilla.org/docs/web-deve...q.html#margins




你看起来了吗?你有没有看到任何桌子?


-

Stan McCannUncle Pirate http://stanmccann.us/pirate.html

网站管理员/计算机中心经理,NMSU在Alamogordo

协调员,Tularosa盆地分会,新墨西哥州大学; AMA#758681; COBB

''94 1500 Vulcan(现已失事):( http: //motorcyclefun.org/Dcp_2068c.jpg

对生活的热情必须包括愿意死亡。 - RA Heinlein



Did you even look? Did you see any tables anywhere?

--
Stan McCann "Uncle Pirate" http://stanmccann.us/pirate.html
Webmaster/Computer Center Manager, NMSU at Alamogordo
Coordinator, Tularosa Basin Chapter, ABATE of NM; AMA#758681; COBB
''94 1500 Vulcan (now wrecked) :( http://motorcyclefun.org/Dcp_2068c.jpg
A zest for living must include a willingness to die. - R.A. Heinlein


这篇关于额外的垂直空间来自哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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