iphone - 为不同的移动设备提供灵活宽度的网站

标签 iphone android css width

我有一个网站,目标是在不同的移动设备上使用它。我如何设置我的网站以根据 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/

相关文章:

android - Ext.device.notification.show 在 Phonegap 中创建错误 - Sencha Touch 2

css - h1 自定义边框底部宽度而不是全 Angular

css - 用CSS固定第一个表格列的宽度

iphone - [NSIndexPath row] 记录在哪里?

iphone - 导航栏外的区域在 iOS 中不可点击

iphone - iScroll 4 在 iOS 上的性能

jquery - 焦点在 iframe 之外

ios - 如何在 iOS 中从一个下拉菜单导航到下一个下拉菜单?

android - 在 windows "C compiler cannot create executables"上编译 pjsip

android - 如何使用非启动器应用程序启用信息亭模式?