我在 Safari 7+ 中遇到了一些与 CSS 相关的严重问题。移动和桌面...所有其他浏览器加载我的页面和 CSS 都比较好。Apple 究竟对 Safari 7+ 做了什么?这很糟糕,因为所有 iPhone 用户都会将此页面视为混乱......
我看不出确切的问题是什么,但我看到缺少 CSS。这是一些 CSS ......希望某种 Safari Guru 可以看到问题或(问题)是什么。它是唯一在我的网站上出现这些问题的主要浏览器。似乎“用户代理”正在删除一些 CSS。
http://www.asumid.com是供参考的站点...除了通过 Browserstack 将站点加载到 Safari 7/8 中或者如果您的机器上有它之外,没有更好的方法来真正预览它。
* {
padding: 0;
border: 0;
margin: 0;
font-size: 100%;
}
/* PRELOAD STYLES */
#pageload {
position: fixed;
background: rgba(17,17,17,.95);
z-index: 1000;
width: 100%;
height: 100%;
-moz-transition: background-color 1s ease-in-out;
-ms-transition: background-color 1s ease-in-out;
-webkit-transition: background-color 1s ease-in-out;
-o-transition: background-color 1s ease-in-out;
transition: background-color 1s ease-in-out;
cursor: wait;
}
#preload_img {
width: 100px;
height: 120px;
margin: 15% auto;
}
#preload_img img {
width: 100%;
height: 100%;
}
#preload_img span {
-ms-animation: loading 2s ease-in-out .5s infinite normal;
-moz-animation: loading 2s ease-in-out .5s infinite normal;
-webkit-animation: loading 2s ease-in-out .5s infinite normal;
-o-animation: loading 2s ease-in-out .5s infinite normal;
animation: loading 2s ease-in-out .5s infinite normal;
font-size: 100%;
position: fixed;
margin: auto;
top: 45%;
left: 48%;
}
h2.toConnect {
position: fixed;
bottom: 7em;
right: 0;
width: 100px;
height: 75px;
background-color: #777;
background-image: url('images/jumptoconnect.png'), url('images/textures/stainlesssteel_001.jpg');
background-position: center center, left center;
background-size: contain, 200%;
background-repeat: no-repeat;
border-radius: 12px 0 0 12px ;
}
h2.toConnect:hover, h2.toConnect:active {
background-color: #999;
background-image: url('images/jumptoconnect.png'), url('images/textures/stainlesssteel_001.jpg');
background-size: contain, 200%;
background-repeat: no-repeat;
opacity: .75;
}
#pageload > div.close {
width: 50px;
height: 50px;
position: absolute;
right: 0;
top: 0;
background: #EEE;
font-size: 2.5em;
text-align: center;
vertical-align: top;
cursor: pointer;
color: #555;
border-radius: 0 0 0 12px;
}
/* ... */