【发布时间】:2019-11-08 17:09:58
【问题描述】:
当我在 Ipad / Ipad pro 中设置浏览器时,会出现
的紫色边框元素不显示。为什么?
相关代码:
<img src="RotateMobile.gif" alt="" id="rotateAnimation">
<p id="rotateText">Please turn your device</p>
@media screen and (max-width:1024px) {
@media screen and (orientation:portrait)
{
#rotateAnimation {
width: 80vw;
height: 60vh;
display: block;
margin: auto;
position: relative;
top: 30vh;
}
#rotateText {
font-size: 300%;
text-align: center;
color: white;
text-shadow: 2px 2px black;
border-top: 3vh solid #D52C82;
border-bottom: 3vh solid #D52C82;
position: absolute;
top: 0px;
margin: 0;
}
}
}
对比
【问题讨论】:
-
您需要更好地提出您的问题 - 据我所知,边框确实在 iPad 模式渲染中显示
标签: html css ipad responsive-design