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.
我刚开始使用 960 CSS 框架,发现它使我的页面在浏览器中居中。如何更改此设置以使页面与浏览器窗口的左侧对齐?
在此先感谢您的帮助!
我需要查看 960 的特定 CSS 样式表,但无论您的容器 div 被称为什么——通常
<div id="container">
或类似的东西。在 CSS 中,您可以相应地删除此单行设置:
#container { margin: 0 auto; }
这应该将您的 960 网格向左对齐,我看不出为什么这对于网格或有效 CSS 来说是一个基本问题。