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.
我有一个专为移动横向显示 (480px) 设计的响应式网页布局,并希望将相同的移动横向布局用于 (320px) 的移动纵向显示。谁能想出一种方法来缩小这个视图,以便它也显示(320px)而不添加另一个专门用于 320px 显示的 css 媒体查询?
要在移动纵向布局中显示相同的移动横向布局,您必须仅使用以下媒体查询。因此,当您将手机从横向旋转到纵向或反之亦然时,将显示相同的布局。
@media screen and (max-width: 480px)
将所有大小设置为rems并在横向模式下将字体大小提升到 150%?只要你不使用像素,一切都会放大
http://snook.ca/archives/html_and_css/font-size-with-rem