| 以下是引用片段: <body> <div id="head"> <h1>header</h1> </div> <div id="columns"> <div id="side1"> <h3>side1</h3> <ul> <li>Let me not to the marriage of true minds</li> <li>Admit impediments; love is not love</li> <li>Which alters when it alteration finds</li> <li>Or bends with the remover to remove</li> <li>Oh, no, it is an ever fixed mark</li> </ul> </div> <div id="content"> <h2>main content</h2> <p>That looks on tempests ... his height be taken.</p> <p>But bears it out ... alteration finds.</p> <p>Whose worth's unknown, ... the remover to remove.</p> </div> <div id="side2"> <h3>side2</h3> <ul> <li>Let me not to the marriage of true minds</li> <li>Admit impediments; love is not love</li> <li>Which alters when it alteration finds</li> </ul> </div> </div> <div id="foot"> <h3>footer</h3> <p>Or bends with ... height be taken. </p> </div> </body> |
|
使用 CSS 创建固定宽度的布局 (2)简介:我最近的几篇专栏文章讨论了使用 XHTML 和 CSS 实现两列或三列页面布局的各个方面。到目前为止,所有例子都使用流式布局(也就是布局会自动扩展和适应浏览器窗口的宽度)。现在是时候考虑另外一种主要的页面布局 ... |
| |
||



