底部定位背景的标准是什么? [英] Which is the standard for bottom positioned background?

查看:139
本文介绍了底部定位背景的标准是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我设置了如下背景图像;

身体

{

背景:url(''back.png'')repeat-x底部;

}

参见本页例如:
http://cat3.dotnet29.hostbasket.com/korean/

当页面内容太短而不能填满整个窗口,

Opera(8.5)设置内容结尾的背景。 IE和FireFox

设置在窗口的尽头。 Opera表示他们坚持

标准。哪种方法正确? Opera还是IE / FF?我喜欢Opera但是

这个问题让我感到有些困惑。

Hello. I set a background image like the following;
body
{
background: url(''back.png'') repeat-x bottom;
}
See this page for example:
http://cat3.dotnet29.hostbasket.com/korean/

When the content of a page is too short to fill the entire window,
Opera(8.5) sets the background at the end of content. IE and FireFox
sets at the end of the window though. Opera says they stick to the
standards. Which is the right way? Opera or IE/FF? I love Opera but
this problem makes me to feel a little bit confused.

推荐答案

一次*t********@gmail.com*写道:
Once upon a time *t********@gmail.com* wrote:
你好。我设置了如下背景图片;
body
{
背景:url(''back.png'')repeat-x bottom;
}
见例如:
http://cat3.dotnet29.hostbasket。 com / korean /

当页面内容太短而无法填满整个窗口时,Opera(8.5)会在内容结尾处设置背景。 IE和FireFox
设置在窗口的尽头。 Opera表示他们坚持
标准。哪种方法正确? Opera还是IE / FF?我喜欢Opera,但是这个问题让我感到有些困惑。
Hello. I set a background image like the following;
body
{
background: url(''back.png'') repeat-x bottom;
}
See this page for example:
http://cat3.dotnet29.hostbasket.com/korean/

When the content of a page is too short to fill the entire window,
Opera(8.5) sets the background at the end of content. IE and FireFox
sets at the end of the window though. Opera says they stick to the
standards. Which is the right way? Opera or IE/FF? I love Opera but
this problem makes me to feel a little bit confused.




尝试使用background-position:bottom; abd看看它是否有帮助


-

/ Arne

现在杀死所有不引用的顶级海报和海报

*如何发布: http://www.cs.tut.fi/~jkorpela/usenet/brox.html

*来自Google: http://www.safalra.com/special/googlegroupsreply/

------- -------------------------------------------------- ----



Try with "background-position:bottom;" abd see if it helps

--
/Arne
Now killing all top posters and posters who don''t quote
* How to post: http://www.cs.tut.fi/~jkorpela/usenet/brox.html
* From Google: http://www.safalra.com/special/googlegroupsreply/
-------------------------------------------------------------


感谢您的回复。我添加了background-position:bottom;但是我不知道它没有改变任何东西。

Thank you for your reply. I added "background-position:bottom;" but I''m
afaid that it didn''t change anything.


ty ******* @ gmail.com 写道:

http://cat3.dotnet29.hostbasket.com/korean/

当页面内容太短而无法填满整个窗口时,Opera(8.5)会在内容结尾处设置背景。

http://cat3.dotnet29.hostbasket.com/korean/

When the content of a page is too short to fill the entire window,
Opera(8.5) sets the background at the end of content.




Opera似乎要收缩包装 html元素,随后

收缩包裹身体。尝试添加


html {margin:0;填充:0;最小高度:100%; }


这应该扩展它以覆盖视口高度。放弃多余的

背景位置属性。


BTW,身体背景颜色:白色被

取代背景速记属性,它将bg颜色重置回浏览器

默认值。我的默认bg颜色(不是白色)显示出来。这不是

有吸引力。


-

回复电子邮件地址是一个无底的垃圾邮件桶。

请回复小组,以便每个人都可以分享。



Opera seems to be "shrink wrapping" the html element, which subsequently
shrink wraps the body. Try adding

html { margin:0; padding:0; min-height:100%; }

That should expand it to cover the viewport height. Drop the superfluous
background-position property.

BTW, the body background-color:white is being superceded by the
background shorthand property, which resets bg color back to the browser
default. My default bg color (not white) shows through. It is not
attractive.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.


这篇关于底部定位背景的标准是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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