简体   繁体   中英

Firefox Background Image Weirdness

Firefox isn't interpreting my background header image the way IE, Chrome, or Safari do. Why is that?

Page: http://wlvrtn.com/sites/nms/page.php How it should look: http://cl.ly/OCbp

HTML:

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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