定位/ Netscape的.. [英] positioning/Netscape..

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

问题描述

我有一个有很多div的pg,其中一个是灰色条,大约150px

从顶部向下,20px从左边...这个条形图(图像)是

767px宽和1px高..但是,即使所有div都在IE和Netscape中一致定位

,在Netscape(7.1)中,仅仅是条形div

约10px ABOVE它应该在哪里..代码:


HTML:

< div id =" bar">

< img src =" images / bar.gif"宽度= QUOT; 768"高度= QUOT 1 QUOT; border =" 0">

< / div>


CSS:

#bar {position:absolute;顶:160像素;左:20px}

Netscape中的
这个条形div显示距离它应该是10px以上..

(实际上是10px,我拿了屏幕-shot并在Photoshop中测量..)

(其他所有div都很好 - 在Netscape中显示相同的位置和

IE ..)我在这里验证了CSS代码,
http://jigsaw.w3 .org / css-validator / v ... or-uri.html.en ,它检查

罚款..


是想知道造成这种情况的原因,谢谢..


Frances Del Rio


I have a pg with lots of divs, one of them is a gray bar about 150px
down from the top and 20px from the left... this bar (an image) is
767px wide and 1px high.. however, even though all divs are positioned
consistently in IE and Netscape, in Netscape (7.1) the bar div ONLY is
about 10px ABOVE where it should be.. code:

HTML:
<div id="bar">
<img src="images/bar.gif" width="768" height="1" border="0">
</div>

CSS:
#bar {position:absolute; top:160px; left:20px}

in Netscape this bar div shows up 10px above from where it should be..
(EXACTLY 10px, in fact, I took screen-shot and measured in Photoshop..)
(all other divs fine -- show up in same position in both Netscape and
IE..) I validated CSS code here,
http://jigsaw.w3.org/css-validator/v...or-uri.html.en, and it checks
fine..

was wondering what is causing this, thank you..

Frances Del Rio


推荐答案

Frances Del Rio写道:
Frances Del Rio wrote:
我有一个包含大量div的pg,其中一个是灰色条,大约150px
从顶部向下,20px从左边开始..这个条形图(图像)是宽767px和高1px ..但是,即使所有div在IE和Netscape中一致定位,在Netscape中也是如此(7.1)bar div只有大约10px,它应该是...代码:

HTML:
< div id =" bar">
< img src =" images / bar.gif"宽度= QUOT; 768"高度= QUOT 1 QUOT; border =" 0">
< / div>

CSS:
#bar {position:absolute;顶:160像素;左:20px}

在Netscape中,这个条形div显示距离它应该的位置10px以上..
(实际上,10px,我在屏幕上拍摄并在Photoshop中测量.. )
(所有其他div很好 - 在Netscape和IE浏览器中显示相同的位置..)我在这里验证了CSS代码,
http://jigsaw.w3.org/css-validator/v...or-uri.html .en ,它检查好了..

想知道是什么导致了这个,谢谢..
I have a pg with lots of divs, one of them is a gray bar about 150px
down from the top and 20px from the left... this bar (an image) is
767px wide and 1px high.. however, even though all divs are positioned
consistently in IE and Netscape, in Netscape (7.1) the bar div ONLY is
about 10px ABOVE where it should be.. code:

HTML:
<div id="bar">
<img src="images/bar.gif" width="768" height="1" border="0">
</div>

CSS:
#bar {position:absolute; top:160px; left:20px}

in Netscape this bar div shows up 10px above from where it should be..
(EXACTLY 10px, in fact, I took screen-shot and measured in Photoshop..)
(all other divs fine -- show up in same position in both Netscape and
IE..) I validated CSS code here,
http://jigsaw.w3.org/css-validator/v...or-uri.html.en, and it checks
fine..

was wondering what is causing this, thank you..




Netscape 7.1使用Gecko 1.4.x浏览器引擎,这个版本有定位问题的
问题。我无法解决它们,虽然有人

其他可能有解决办法。


Netscape 7.2使用Gecko 1.7.x浏览器引擎,应该没有

问题。



Netscape 7.1 uses the Gecko 1.4.x browser engine, and this version has
problems with positioning. I was unable to resolve them, though someone
else might have a work-around.

Netscape 7.2 uses the Gecko 1.7.x browser engine, and should have no
problems.


CA Upsdel​​l>写道:
C A Upsdell > wrote:
Frances Del Rio写道:
Frances Del Rio wrote:
我有一个有很多div的pg,其中一个是灰色的条约150px
下来从顶部开始,从左边开始20px ......这个条形图(图像)宽767px,宽1px ..然而,即使所有div在IE和Netscape中一致定位,也在Netscape中( 7.1)酒吧
div仅大约10px它应该是...代码:

HTML:
< div id =" bar">
< img src =" images / bar.gif"宽度= QUOT; 768"高度= QUOT 1 QUOT; border =" 0">
< / div>

CSS:
#bar {position:absolute;顶:160像素;左:20px}

在Netscape中,这个条形div显示距离它应该的位置10px以上..
(实际上,10px,我在屏幕上拍摄并在Photoshop中测量.. )
(所有其他div很好 - 在Netscape和IE浏览器中显示相同的位置..)我在这里验证了CSS代码,
http://jigsaw.w3.org/css-validator/v...or-uri.html .en ,它好好检查..

想知道是什么导致了这个,谢谢..
I have a pg with lots of divs, one of them is a gray bar about 150px
down from the top and 20px from the left... this bar (an image) is
767px wide and 1px high.. however, even though all divs are
positioned consistently in IE and Netscape, in Netscape (7.1) the bar
div ONLY is about 10px ABOVE where it should be.. code:

HTML:
<div id="bar">
<img src="images/bar.gif" width="768" height="1" border="0">
</div>

CSS:
#bar {position:absolute; top:160px; left:20px}

in Netscape this bar div shows up 10px above from where it should be..
(EXACTLY 10px, in fact, I took screen-shot and measured in Photoshop..)
(all other divs fine -- show up in same position in both Netscape and
IE..) I validated CSS code here,
http://jigsaw.w3.org/css-validator/v...or-uri.html.en, and it
checks fine..

was wondering what is causing this, thank you..



Netscape 7.1使用Gecko 1.4.x浏览器引擎,此版本存在定位问题。我无法解决它们,虽然有人可能会解决问题。

Netscape 7.2使用Gecko 1.7.x浏览器引擎,应该没有问题。


Netscape 7.1 uses the Gecko 1.4.x browser engine, and this version has
problems with positioning. I was unable to resolve them, though someone
else might have a work-around.

Netscape 7.2 uses the Gecko 1.7.x browser engine, and should have no
problems.




OP表示只有一个div位于10px以上,比其应该高出10px。 NS7.2没有问题,我记得在NS7.1这个

方面没有问题。无论如何,据说其他(很多)div的效果非常好。

。我建议代码中的某些东西

正在影响这一点。另一件事是没有理由将

gif放在div中仅用于定位 - 图像可以直接定位。


-

Gus



The OP said that only one div, among others, is positioned 10px higher
than it should be. NS7.2 has no problem and I recall no problem in this
regard with NS7.1. In any case, it works reportedly perfectly well for
the other (lots of) divs. I suggest that something in the code somewhere
is affecting this. Another thing is that there is no reason to place the
gif in a div simply for positioning - the image may be positioned directly.

--
Gus





Gus Richter写道:


Gus Richter wrote:
CA Upsdel​​l>写道:
C A Upsdell > wrote:
Frances Del Rio写道:
Frances Del Rio wrote:
我有一个包含大量div的pg,其中一个是灰色条约150px
从顶部向下,从左边20px ...这个条(图像)是宽767px和高1px ..但是,即使所有div在IE和Netscape中一致定位,在Netscape(7.1)中,酒吧
div仅约10px,它应该是...代码:

HTML:
< div id =" bar"> ;
< img src =" images / bar.gif"宽度= QUOT; 768"高度= QUOT 1 QUOT; border =" 0">
< / div>

CSS:
#bar {position:absolute;顶:160像素;左:20px}

在Netscape中,这个条形div显示距离它应该是的地方10px ...(实际上是10px,实际上,我拍摄了屏幕截图并以
Photoshop ..)
(所有其他div都很好 - 在Netscape和IE浏览器中显示相同位置..)我在这里验证了CSS代码,
http://jigsaw.w3.org/css-validator/v...or -uri.html.en ,它好好检查..

想知道是什么导致了这个,谢谢..
I have a pg with lots of divs, one of them is a gray bar about 150px
down from the top and 20px from the left... this bar (an image) is
767px wide and 1px high.. however, even though all divs are
positioned consistently in IE and Netscape, in Netscape (7.1) the bar
div ONLY is about 10px ABOVE where it should be.. code:

HTML:
<div id="bar">
<img src="images/bar.gif" width="768" height="1" border="0">
</div>

CSS:
#bar {position:absolute; top:160px; left:20px}

in Netscape this bar div shows up 10px above from where it should
be.. (EXACTLY 10px, in fact, I took screen-shot and measured in
Photoshop..)
(all other divs fine -- show up in same position in both Netscape and
IE..) I validated CSS code here,
http://jigsaw.w3.org/css-validator/v...or-uri.html.en, and it
checks fine..

was wondering what is causing this, thank you..




Netscape 7.2使用Gecko 1.7.x浏览器引擎,应该没有问题。



Netscape 7.1 uses the Gecko 1.4.x browser engine, and this version has
problems with positioning. I was unable to resolve them, though
someone else might have a work-around.

Netscape 7.2 uses the Gecko 1.7.x browser engine, and should have no
problems.



OP表示只有一个div位于比应有的高10px的位置。 NS7.2没有问题,我记得NS7.1对此没有任何问题。在任何情况下,它据说对其他(很多)div来说非常好。我建议代码中某些东西
正在影响这个。另一件事是没有理由将
gif放在div中只是为了定位 - 图像可以直接定位。


The OP said that only one div, among others, is positioned 10px higher
than it should be. NS7.2 has no problem and I recall no problem in this
regard with NS7.1. In any case, it works reportedly perfectly well for
the other (lots of) divs. I suggest that something in the code somewhere
is affecting this. Another thing is that there is no reason to place the
gif in a div simply for positioning - the image may be positioned directly.




真的吗?怎么样?在div之外?绝对定位?请解释..

谢谢.. Frances



really? how? outside a div? absolute positioning? pls explain..
thank you.. Frances


这篇关于定位/ Netscape的..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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