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.
我使用了这个网格系统。但它几乎有 1000 像素的宽度,我想调整 960 像素的大小,但我不知道该怎么做。我也试着给 body{width:960px; margin:auto;} 但这一次我失去了响应性的主要思想..
网格系统用于响应的百分比。您可以尝试将网格包含在 .container 中,然后在其中定义宽度:
HTML
<div class="container"> <div class="span_12_of_12"> ... </div> </div>
CSS
.container { width: 960px; margin:0 auto; }