CSS简单页面布局

更多的CSS简单页面布局可以去css布局下载啊,资源来自CSS彻底设计与研究。

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>单列布局</title>
        <style>
            
            body{
                background: #fff;
                font: 13px/1.5 arial;
                margin: 0;
                padding: 0;
            }
            .rounded{
                background: url(pages/layout/images/left-top.gif) top left no-repeat;
                width: 100%; /*IE6下重新计算宽度*/
            }
            .rounded h2{
                background: url(pages/layout/images/right-top.gif) top right no-repeat;
                padding: 20px 20px 10px;
                margin: 0;
            }
            .rounded .main{
                background: url(pages/layout/images/right.gif) top right repeat-y;
                padding: 10px 20px;
                margin: -2em 0 0 0;
            }
            .rounded .footer{
                background: url(pages/layout/images/left-bottom.gif) left bottom no-repeat;
            }
            .rounded .footer p{
                color: #888;
                text-align: right;
                display: block;
                padding: 10px 20px 20px;
                margin: -2em 0 0 0;
                background: url(pages/layout/images/right-bottom.gif) right bottom no-repeat;
            }
            #header, #content, #pagefooter{
                width: 760px;
                margin: 0 auto;
            }
        </style>
    </head>
    <body>
        <div id="header">
            <div class="rounded">
                <h2>Page Header</h2>
                <div class="main">
                    <p>
                        这是一行文本,这里作为样例,显示在布局框中。<br/>
                        这是一行文本,这里作为样例,显示在布局框中。 </p>
                </div>
                <div class="footer">
                    <p>
                        查看详细信息>>
                    </p> 
                </div>
            </div>
        </div>
        <div id="content">
            <div class="rounded">
                <h2>Page Content</h2>
                <div class="main">
                    <p>
                        这是一行文本,这里作为样例,显示在布局框中。<br />
                        这是一行文本,这里作为样例,显示在布局框中。
                    </p>
                    <p>
                        这是一行文本,这里作为样例,显示在布局框中。<br />
                        这是一行文本,这里作为样例,显示在布局框中。
                    </p>
                </div>
                <div class="footer">
                    <p>
                        查看详细信息>>
                    </p> 
                </div>
            </div>
        </div>
        <div id="pagefooter">
            <div class="rounded">
                <h2>Page Footer</h2>
                <div class="main">
                    <p>
                        这是一行文本,这里作为样例,显示在布局框中。
                    </p>
                </div>
                <div class="footer">
                    <p>
                        查看详细信息>>
                    </p> 
                </div>
            </div>
        </div>
    </body>
</html>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值