我的网页有居中的页眉、内容和页脚div,每个div的宽度都是900px。
(关于页眉、内容和页脚,我唯一能提供的其他相关信息是页眉有固定的定位,内容是相对定位的,页脚是绝对定位的。但是,我不确定此信息是否与解决方案相关。)
我使用以下CSS媒体查询:
/* If screen width is less than or equal to 900px (e.g.: tablet, mobile) ... */
@media only screen and (max-width: 900px) {
/* Scale header, content and footer width */