简体   繁体   English

Firefox背景图片怪异

[英]Firefox Background Image Weirdness

Firefox isn't interpreting my background header image the way IE, Chrome, or Safari do. Firefox不会像IE,Chrome或Safari那样解释我的背景标题图像。 Why is that? 这是为什么?

Page: http://wlvrtn.com/sites/nms/page.php How it should look: http://cl.ly/OCbp 页面: http : //wlvrtn.com/sites/nms/page.php它的外观: http : //cl.ly/OCbp

HTML: HTML:

<header class="banner banner-1">
   <h1>About Us</h1>
</header>

CSS: CSS:

.banner {
position: relative;
text-align: center;
overflow: hidden;
height: 229px;
padding-top:105px;
z-index: 0;
width: 100%;
margin: 0 auto;
background-color: #8ab2a9;
background-repeat: no-repeat;
background-position-x: center;
background-position-y: bottom; 
}

.banner-1 {
background-image: url(../images/banners/banner-01.jpg);
}

Add

.banner-1 { background-position: center bottom;}

And it should work. 它应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM