网站移动兼容性 [英] website mobile compatibility
问题描述
如何让网站应该与桌面浏览器的兼容性以及移动浏览器?
How to make website that should compatibility with desktop browser as well as mobile browser?
推荐答案
我要假设你的意思兼容。而如果我知道一点关于你的努力实现我也许能多一点帮助。
I'm going to assume you mean compatible. and If I knew a little more about what your trying to achieve I may be able to be a bit more help.
基本上是因为在各种移动设备(其中大部分有不同的浏览器功能,屏幕分辨率,尺寸等),你将永远不会得到一个网站,与所有移动设备完全兼容。总会有一些设备的问题。
Basically because of the wide range of mobile devices (most of which have different browser capabilities, screen resolutions, dimensions, etc) you will never get a website to completely compatible with all mobile devices. There will always be problems with some devices.
一个可能的解决方案然而,这是创建不同版本的网站不同类型的手机(例如,用于iPhone的一个版本,诺基亚的一个版本,黑莓版本,等),并使用类似PHP和放大器; WURFL 来检测移动浏览器类型并加载该网站的相应版本。
A possible solution to this however, is to create different versions of the site for different types of phones (for example a version for iphones, a version for nokias, a version for blackberrys, ect), and use something like PHP & WURFL to detect the mobile browser type and load the appropriate version of the site.
我已经使用PHP和放大器; WURFL 过去以检测是否正在使用桌面或移动浏览器,并加载适当的移动或桌面网站。
I have used PHP & WURFL in the past to detect if a desktop or mobile browser is being used, and load the appropriate mobile or desktop site.
这篇关于网站移动兼容性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!