我有一个网站,目标是在不同的移动设备上使用它。我如何设置我的网站以根据 iPhone android 等设备的宽度调整其宽度。使用 css 和 Java 脚本
发送
最佳答案
将此添加到 html 并调整参数。
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
有关如何使用 Safari 和 iOS 特定 HTML 标签的更多信息http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/usingtheviewport/usingtheviewport.html
关于iphone - 为不同的移动设备提供灵活宽度的网站,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6052485/