简体   繁体   中英

Safari doesn't scale background?

Im having a problem in Safari, that it doensn't scale the background - It works perfectly in Firefox, Chrome and so on, just safari that's the problem... You can see it here: http://wearewebstars.dk/frontend/test/theme-front.html

It happens when you have a resolution that is under 1280px - Any ideas to that's wrong?

在此处输入图片说明

The background is set like this:

body#front-themepage {  background: transparent url(assets/css/img/themes/bg-front.jpg) top center no-repeat; width:100%;  }

I've also tried background-size:cover - And background-size: 100%, 100%, but it doenst work :(

Safari, and Chrome in some cases, require -webkit- to be specified for CSS selectors. This is for no reason other than Apple's design, and is (probably) no fault of your own. In all likelihood, this is the issue, but it may also be caused by something you have not displayed.

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