创建快速网站后,我注意到 iPhone 和 Mac 上的 Safari 中的图像要么不显示,要么格式不正确。
例如,我预计assets/images/showzaunder @keyframes animateinindex.css会以设备宽度的 65% 显示,这适用于 Windows 10 的 Chrome,但在 Safari 上,它实际上看起来膨胀到超过 100%。
我想我正在寻找我可能错过的任何 Safari 依赖项,我不习惯 Web 开发的差异。
body, html {
height: 100%;
margin: 0;
}
.container{
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100vh;
animation: animate 16s ease-in-out infinite;
background-size: cover;
}
.outer{
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100vh;
background: rgba(0,0,0,0.15)
}
@keyframes animate{
0%,100%{
background-image: url("https://raw.githubusercontent.com/showzadomain/showzatheband.github.io/master/assets/images/showza.png"), url("https://github.com/showzadomain/showzatheband.github.io/blob/master/assets/images/bg_1.JPG?raw=true");
height: 100%;
-webkit-appearance: textfield;
background-position: center;
background-repeat: no-repeat;
background-size: 65%, cover;
}
33%{
background-image: url("https://raw.githubusercontent.com/showzadomain/showzatheband.github.io/master/assets/images/showza.png"), url("https://github.com/showzadomain/showzatheband.github.io/blob/master/assets/images/bg_2.JPG?raw=true");
}
66%{
background-image: url("https://raw.githubusercontent.com/showzadomain/showzatheband.github.io/master/assets/images/showza.png"), url("https://github.com/showzadomain/showzatheband.github.io/blob/master/assets/images/bg_3.jpg?raw=trueg");
}
}
.image {
border-radius: 100px;
}
.itemDiv {
height: 45px;
}
.item {
color: white;
font-family: Helvetica;
font-weight: bold;
font-style: normal;
font-size: 30px;
}
.menuItem {
color: white;
font-family: Helvetica;
font-weight: bold;
font-style: normal;
font-size: 40px;
}
.topnav {
overflow: hidden;
background-color: transparent;
}
人到中年有点甜
相关分类