Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows mobile 宽度=移动IE中不工作的设备宽度_Windows Mobile_Viewport - Fatal编程技术网

Windows mobile 宽度=移动IE中不工作的设备宽度

Windows mobile 宽度=移动IE中不工作的设备宽度,windows-mobile,viewport,Windows Mobile,Viewport,我正在努力创建一个在手机上运行良好的网站。到目前为止,我测试过的每一款手机都运行良好,但使用Windows Mobile IE的手机除外。似乎Mobile IE只是读取,并没有将宽度设置为设备宽度 有没有人有过这方面的经验,或者有没有让网站在移动IE上更好浏览的技巧 谢谢你的帮助 移动IE似乎只在指定实际宽度时才考虑视口元标记。要使页面宽度与实际设备宽度一致,请使用内容设置为0的mobileoptimized meta标记: MSDN的详细信息: 如果您将其与如上所述的viewport met

我正在努力创建一个在手机上运行良好的网站。到目前为止,我测试过的每一款手机都运行良好,但使用Windows Mobile IE的手机除外。似乎Mobile IE只是读取
,并没有将宽度设置为设备宽度

有没有人有过这方面的经验,或者有没有让网站在移动IE上更好浏览的技巧


谢谢你的帮助

移动IE似乎只在指定实际宽度时才考虑视口元标记。要使页面宽度与实际设备宽度一致,请使用内容设置为0的mobileoptimized meta标记:

MSDN的详细信息:


如果您将其与如上所述的viewport meta标记相结合,这将提供您在大多数移动浏览器中查找的内容。

对于早于Windows Phone 7的IE mobile版本,无法识别视口-您应使用如上所示的mobileoptimized标记。

在CSS中编写此内容

@-ms-viewport{
    width: device-width;
}
或以html格式:

<style type="text/css">
  @-ms-viewport{
  width: device-width;
  }
</style>

@-ms视口{
宽度:设备宽度;
}
和工作后设备宽度