Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Foundation 5 构建网站,但是当在 iPhone 6 或 6+ 上查看时,它会显示桌面版本,这很容易理解。
但是,坚持使用移动视图的最佳方式/最佳实践是什么,就好像它是用于(iPhone 4 或 5)一样?
如果您使用的是 Foundation Sass,请转到设置文件并取消注释媒体查询部分中的行:
// $small-range: (0em, 40em)
iPhone 6 屏幕为 23.4383em x 41.688em,iPhone 6 Plus 屏幕为 25.875em x 46.125em。如果您更改$small-range为高于 46.125em,则应将其保留在这些 iPhone 上的移动视图中。
$small-range