div /布局问题(FF问题..) [英] divs/layout question (FF problem..)

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

问题描述



请看@ this pg, http ://www.mayacove.com/design/divs.html 在IE和FF中..


在IE中它看起来很好,但在FF中主要div(居中) ,800px宽,蓝色

背景;实际上bg将是白色..)不会一直显示

down ...(我试过身高: 100%的它,但它仍然只有浏览器窗口高达

..)


唯一的原因我有这个问题是我想做的a

背景图片背后主要的div ..但它不合作...;)

在FF页脚也出现在错误的地方..有花了很长时间

这个.....我几乎准备好切换到基于表格的布局..它

会让这个更加简单.... ;)


(这是一个博客,但博客布局总是在

divs中完成..)

非常感谢....



pls look @ this pg, http://www.mayacove.com/design/divs.html in IE and FF..

in IE it looks fine, but in FF the main div (centered, 800px wide, blue
background; in reality the bg will be white..) won''t display all the way
down... (I tried height:100% for it but it still only went as high as
the browser window..)

only reason am having this problem is that I want to do a
background-image BEHIND the main div.. but it''s not cooperating...;)
in FF the footer also appears in wrong place.. have spent a long time
on this..... am almost ready to switch to table-based layout.. it
would make this so much simpler....;)

(this is for a blog, though, and for blogs layouts are always done in
divs..)

thank you very much....



推荐答案

在文章< ff ********** @ aioe.org>中,maya < ma ******** @ yahoo.com>

写道:
In article <ff**********@aioe.org>, maya <ma********@yahoo.com>
wrote:

请看@ this pg, http://www.mayacove.com/design/divs.html in IE和FF ..


在IE中它看起来很好,但在FF主要div(居中,800px宽,蓝色

背景;实际上bg会是白色的......)不会一直显示

down ...(我尝试过高度:100%,但它仍然只有高达

浏览器窗口..)


唯一的原因是我有这个问题是我想做一个

背景图像背后的主要内容div ..但它不合作...;)

在FF页脚也出现在错误的地方..花了很长时间

就此而言。 ....我几乎准备好切换到基于表格的布局..它

会让这简单得多......;)


(这是一个博客,但博客布局总是在

divs完成..)
pls look @ this pg, http://www.mayacove.com/design/divs.html in IE and FF..

in IE it looks fine, but in FF the main div (centered, 800px wide, blue
background; in reality the bg will be white..) won''t display all the way
down... (I tried height:100% for it but it still only went as high as
the browser window..)

only reason am having this problem is that I want to do a
background-image BEHIND the main div.. but it''s not cooperating...;)
in FF the footer also appears in wrong place.. have spent a long time
on this..... am almost ready to switch to table-based layout.. it
would make this so much simpler....;)

(this is for a blog, though, and for blogs layouts are always done in
divs..)



在这种情况下,它最好从有效的HTML开始。你会介意用最少的代码和样式重现这个吗?

显示你有的问题,从有效的代码开始

a适当的doctype ?


-

dorayme


In cases like this, it is best to start with valid html. Would
you mind reproducing this with the bare minimum code and styles
that display the problem you have, starting with valid code with
a proper doctype?

--
dorayme


dorayme写道:
dorayme wrote:

在文章< ff ********** @ aioe.org> ;, maya< ma ******** @ yahoo.com>

写道:
In article <ff**********@aioe.org>, maya <ma********@yahoo.com>
wrote:

>请看@t pg, http://www.mayacove.com/design/divs.html ..

在IE中它看起来很好,但在FF主要div(居中,800px宽,蓝色
背景;实际上bg将是白色..)不会一直显示
下来...(我试过高度:100%的它,但它仍然只有浏览器窗口的高度......)

唯一的原因是我有这个问题是我想做一个
背景 - 图像后面主要的..但​​是它不合作......;)在FF中页脚也出现在错误的地方..已经花了很长时间
这个.....我差不多了准备切换到基于表格的布局..它会使这个更简单....;)

(这是为博客,但对于博客布局总是在
div中完成..)
>pls look @ this pg, http://www.mayacove.com/design/divs.html in IE and FF..

in IE it looks fine, but in FF the main div (centered, 800px wide, blue
background; in reality the bg will be white..) won''t display all the way
down... (I tried height:100% for it but it still only went as high as
the browser window..)

only reason am having this problem is that I want to do a
background-image BEHIND the main div.. but it''s not cooperating...;)
in FF the footer also appears in wrong place.. have spent a long time
on this..... am almost ready to switch to table-based layout.. it
would make this so much simpler....;)

(this is for a blog, though, and for blogs layouts are always done in
divs..)




在这种情况下,最好从有效的html开始。你会介意用最少的代码和样式重现这个吗?

显示你有的问题,从有效的代码开始

a适当的doctype ?



In cases like this, it is best to start with valid html. Would
you mind reproducing this with the bare minimum code and styles
that display the problem you have, starting with valid code with
a proper doctype?



ok,页面现在验证了...... :)

http://validator.w3.org/check?uri=ht...e&ss=1&group=0


(和拿出不必要的css ..)


非常感谢....

ok, the page validates now...:)

http://validator.w3.org/check?uri=ht...e&ss=1&group=0

(and took out unnecessary css..)

thank you very much....




" maya" < ma ******** @ yahoo.com在消息新闻中写道:ff ********** @ aioe.org ...

"maya" <ma********@yahoo.comwrote in message news:ff**********@aioe.org...

>

请看@ this pg,

FF ..


在IE浏览器中看起来很好,但在FF主要div(居中,800px宽,蓝色

背景;实际上bg将是白色..)不会一直显示

down ...(我尝试了高度:100%,但它仍然只有

浏览器窗口......)
>
pls look @ this pg, http://www.mayacove.com/design/divs.html in IE and
FF..

in IE it looks fine, but in FF the main div (centered, 800px wide, blue
background; in reality the bg will be white..) won''t display all the way
down... (I tried height:100% for it but it still only went as high as the
browser window..)



在这种情况下(像往常一样)IE出错了。


你为白色背景的div指定了高度:600px。

那个是FF给你的。 600像素,就像你说的那样。


如果你不希望那个div的内容从

的底部逃脱,那么div就不要了给那个div任何高度。为什么600像素。你试图预测浏览器画布的高度是否需要
?嗯,你有它

完全错误:-)

In this case (as usual) IE is getting it wrong.

You have specified height: 600px for that div with the white background.
That is what FF is giving you. 600 pixels, just like you said.

If you do not want the content of that div to escape out of the bottom of
the div then do not give that div any height. And why 600 pixels. Are you
trying to anticipate the height of my browser canvas? Well, you have got it
totally wrong :-)


唯一的原因是我有这个问题是我想做背景 - 图片

在主要的div之后..但是它不合作......;)

在FF页脚也出现在错误的地方..花了很长时间时间在

这.....几乎准备好切换到基于表格的布局..它会

使这个更简单....;)
only reason am having this problem is that I want to do a background-image
BEHIND the main div.. but it''s not cooperating...;)
in FF the footer also appears in wrong place.. have spent a long time on
this..... am almost ready to switch to table-based layout.. it would
make this so much simpler....;)



您可以先省略大部分定位内容。你为什么要漂浮内容div
。为什么给它一个像素宽度。这本身就会导致我突然失去兴趣。

You could start by omiting most of your positioning stuff. Why do you float
the content div. Why do you give it a width in pixels. That in itself causes
me to suddenly lose interest.


(这是针对博客的,对于博客布局总是这样做在

divs ..)
(this is for a blog, though, and for blogs layouts are always done in
divs..)



这是对的吗? :-)


-

理查德。

Is that right? :-)

--
Richard.


这篇关于div /布局问题(FF问题..)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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