【发布时间】:2012-04-19 02:00:38
【问题描述】:
您建议我应该为响应式布局使用什么宽度?
/* Default Width: */
.container { width: 940px; margin: 0 auto; }
/* Smaller than standard 960 (devices and browsers) */
@media only screen and (max-width: 959px) {}
/* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 959px) {}
/* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 767px) {}
/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
@media only screen and (min-width: 480px) and (max-width: 767px) {}
/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
@media only screen and (max-width: 479px) {}
【问题讨论】:
-
您的问题是什么?在我看来,您的列表中有一些不错的价值。
-
@GeorgeStocker,你是这样标记的吗?我昨天这样做了,但我认为社区需要多次重复标记才能获得 SO 版主的审核。
-
@hotshot309 我投票决定关闭它。
标签: html css responsive-design