在手持设备上开发Internet Explorer Mobile 6的最佳方法是什么? [英] What is the best method for developing for Internet Explorer Mobile 6 on handheld devices?

查看:79
本文介绍了在手持设备上开发Internet Explorer Mobile 6的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的客户在手持设备上拥有各种版本的IE Mobile,当客户在这些设备上查看我们的网页时,我常常会遇到特殊情况。我想知道测试页面布局的最佳方法是什么,以确保客户
没有问题。我们目前在我们拥有的两个手持设备上进行检查,但有时这似乎不够。是否有任何类型的模拟器可用于查看不同版本?或者设置一个带有IE 6副本
的VM来验证页面布局是否有效?或者是否列出了设备上实际可用的CSS属性和选择器?我一直在遇到一些支持的东西,而其他的东西则没有,而且我无法理解为什么有些CSS2的东西是
,而其他的则不是。即使这样,每个设备似乎都会改变。

We have customers with various versions of IE Mobile on handheld devices, and I commonly come across peculiarities when customers view our web pages on these devices. I was wondering what would be the best way to test page layouts to make sure customers don't have issues. We currently check it on the two handheld devices we own, but this does not seem to be enough sometimes. Is there any sort of emulator available to view on the different versions available? Or would it be valid to set up a VM with a copy of IE 6 to verify page layout? Or is there a list of what CSS properties and selectors are actually available on the devices? I keep coming across some things that are supported, and others that are not, and I can't make any sense out of why some CSS2 things are, but others aren't. And even then this seems to change per device.

推荐答案

你可以使用像< a href ="http://jquerymobile.com"> http://jquerymobile.com 并在win7或8.1上使用IE11。对于使用特征测试的旧版浏览器,垫片会优雅地回退。

you could use a shim like http://jquerymobile.com and use IE11 on win7 or 8.1. the shim will gracefully fallback for legacy browsers using feature testing.

例如。 if(document.querySelectAll){} // userAgent支持querySelectorAll

eg. if(document.querySelectAll){}// userAgent supports querySelectorAll

使用IE11 Developer Tool> Emulation选项卡> documentMode和屏幕大小进行测试。

test with the IE11 Developer Tool>Emulation tab>documentMode and screen size.

IE7仿真模式应该是您最低的测试仿真模式。

IE7 emulation mode should be your lowest test emulation mode.

为了将来证明您的网站使用html5文档类型声明(<!doctype html> ;)

To future proof your site use the html5 document type declaration (<!doctype html>)

IE7仿真模式和更低版本不支持margin:auto ....你可以使用align属性作为后备。

IE7 emulation modes and lower do not support margin:auto .... you could use the align attribute as a fallback.

问候。


这篇关于在手持设备上开发Internet Explorer Mobile 6的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆