小编use*_*261的帖子

iOS 7中的媒体查询无法正常工作

我正在使用几个媒体查询,以横向和纵向为目标定位iPad和iPhone,但从iOS 7开始,它们不再起作用了.但是,它们在iOS 6中完美运行.有没有人有类似的经历?

这是我正在使用的代码的一部分:

<style type="text/css">
/* iPad (landscape) */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape) {
.header {
font-family: courier new, monospace;
color: #999999;
font-size: 14pt;
line-height: 104%;
width: 37.5em; }
.action {  
font-family: courier new, monospace;
color: #999999;
font-size: 14pt;
line-height: 104%;
width: 37.5em; }
.character {  
font-family: courier new, monospace;  
color: #999999;
font-size: 14pt;
line-height: 104%;
padding-left: 12.25em;
width: 21em; }
.dialogue {
font-family: courier new, monospace;  
color: …
Run Code Online (Sandbox Code Playgroud)

media ios ios7

1
推荐指数
1
解决办法
6593
查看次数

标签 统计

ios ×1

ios7 ×1

media ×1