【发布时间】:2017-03-10 09:53:33
【问题描述】:
问题:我有以下针对手机的页脚样式:
@media (max-width: 800px){
#footer-affiliation {
background-color: #0077C0;
color: rgb(255, 255, 255);
padding: 5px;
height:110px;
width:109.01% !important;
margin-left:-15px;
}
}
但是,它会影响 IPAD 上的页脚。我做了以下仅针对 IPAD 和 iPhone。对于 iphone css 样式工作正常,但是对于 IPAD 样式不起作用:
@media only screen
and (min-device-width : 480px)
and (max-device-width : 800px)
and (orientation : portrait) {
#footer-affiliation {
background-color: #0077C0;
color: rgb(255, 255, 255);
padding: 5px;
height:110px;
width:104% !important;
margin-left:-15px;
}
}
我想知道我可以采取哪些其他方法来仅针对 IPAD。
谢谢
【问题讨论】: