[英]Safari background-image issue
I'm building a Grid with background images but things go wrong in Safari. 我正在使用背景图像构建网格,但是在Safari中出现了问题。 (Safari 7, 6 and 5, tested in Browserstack )
(Safari 7、6和5在Browserstack中进行了测试)
This is the website. 这是网站。 As you can see in Chrome, FF or IE there's a grid with background image set inline.
正如您在Chrome,FF或IE中看到的那样,有一个内联设置有背景图像的网格。
http://fourseasonsrally.com/1 http://fourseasonsrally.com/1
In Safari I sometimes see the background image but then it suddenly disappears.. I could not reproduce the error in other browsers. 在Safari中,我有时会看到背景图像,但随后突然消失了。.我无法在其他浏览器中重现该错误。
This is what the grid looks like on chrome 这就是镀铬的网格外观
It seems that shorthand css is ignored by Safari, I removed all the shorthand properties but the problem persists. 似乎Safari忽略了速记css,我删除了所有速记属性,但问题仍然存在。
Any idea what might be going wrong? 任何想法可能出了什么问题吗? Thanks!
谢谢!
You mean header logo (FOURSEASONS RALLY) not visible in safari - changes the below css. 您的意思是在野生动物园中看不到标题徽标(FOURSEASONS RALLY)-更改以下CSS。
present css: 目前的CSS:
.header {
background: url("../img/logo.svg") no-repeat scroll center center / contain #111;
}
remove the " / contain" 删除“ /包含”
.header {
background: url("../img/logo.svg") no-repeat scroll center center #111;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.