繁体中文
设为首页
加入收藏

推荐

公告

推荐文章
· CSS样式 14个高级技巧精选
· 一行代码杜绝iframe挂马
· css如何控制页面居中
· 与表格边框有关的CSS语法
· 多个CSS样式表争夺特定选...
· XHTML入门学习教程:框架...
· DIV+CSS布局实例:各种2栏...
· 左中右3栏布局中最先显示...
· 最小高度100%页脚保持在...
· CSS初级入门(1):整体布...
热点文章
广告

当前位置:网络首页 >> 网页制作 >> html/css >> 使用 CSS 创建固定宽度的布局

使用 CSS 创建固定宽度的布局 (2)

2008-01-08 09:29:43  作者:  来源:互联网  浏览次数:37  文字大小:【】【】【
简介:我最近的几篇专栏文章讨论了使用 XHTML 和 CSS 实现两列或三列页面布局的各个方面。到目前为止,所有例子都使用流式布局(也就是布局会自动扩展和适应浏览器窗口的宽度)。现在是时候考虑另外一种主要的页面布局 ...
关键字:宽度 布局
以下是引用片段:
<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>

[1] [2] [3] [4] [5]


相关文章