html通用模板

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>我的模板</title>
        <style type="text/css">
            body {
                background: #eee;
                margin: 0;
            }
            .header {
                background: red;
                position: fixed;
                width: 100%;
                height: 60px;
                color: white;
            }
            .middle {
                background: white;
                padding-top: 60px;
                margin-left: 120px;
                margin-right: 120px;
                padding-bottom: 30px;
            }
            .footer {
                background: blue;
                position: fixed;
                left: 0;
                bottom: 0;
                width: 100%;
                height: 30px;
                color: white;
            }
            .left {
                background: orange;
                float: left;
                width: 200px;
                margin-left: 90px;
                margin-top: 20px;
            }
            .right {
                background: purple;
                margin-left: 290px;
                margin-right: 90px;
                padding-left: 100px;
                padding-right: 100px;
            }
            .left ul {
                list-style: none;
            }
        </style>
    </head>

    <body>
        <div class="header">
            <div style="height: 18px;"></div>
            <div style="width: 30px; margin: 0 auto 0 auto;">header</div>
        </div>
        <div class="middle">
            <div class="left">
                <ul>
                    <li><a href="#">this is item 0</a></li>
                    <li><a href="#">this is item 1</a></li>
                    <li><a href="#">this is item 2</a></li>
                    <li><a href="#">this is item 3</a></li>
                    <li><a href="#">this is item 4</a></li>
                    <li><a href="#">this is item 5</a></li>
                </ul>
            </div>
            <div class="right">
                <div>I am div</div>
                <p>I am p</p>
                <ul>
                    <li>this is other item 0</li>
                    <li>this is other item 1</li>
                    <li>this is other item 2</li>
                    <li>this is other item 3</li>
                    <li>
                        <div>Hello JavaHello JavaHello JavaHello JavaHello JavaHello JavaHello JavaHello JavaHello JavaHello JavaHello JavaHello JavaHello JavaHello JavaHello JavaHello JavaHello Java</div>
                    </li>
                    <li>
                        <div style="background: #6F0;">我是li内部的div0</div>
                        <div style="background: #60F;">我是li内部的div1</div>
                        <div style="background: #F0F;">我是li内部div2</div>
                    </li>
                    <li>this is other item 0</li>
                    <li>
                        <form>
                            <label>请输入用户名</label><input type="text"/>
                            <label>请输入密码</label><input type="password" />
                            <input type="submit" />
                        </form>
                    </li>
                    <li>this is other item 2</li>
                    <li>this is other item 3</li>
                    <li>this is other item 4</li>
                    <li>this is other item 5</li>
                    <li>this is other item 0</li>
                    <li>this is other item 1</li>
                    <li>this is other item 2</li>
                    <li>this is other item 3</li>
                    <li>this is other item 4</li>
                    <li>this is other item 5</li>
                    <li>this is other item 0</li>
                    <li>this is other item 1</li>
                    <li>this is other item 2</li>
                    <li>this is other item 3</li>
                    <li>this is other item 4</li>
                </ul>
                <div>i am div</div>
            </div>
            <div style="background: yellow; clear:both;">div3
            </div>
        </div>
        <div class="footer">
            <div style="width: 30px; margin: 0 auto 0 auto;">footer</div>
        </div>
    </body>
</html>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值