简单的HTML网页框架

先上个效果大家看一下.
简单的HTML网页框架_第1张图片


<html>
    <head>
        <meta charset="utf-8" />
        <title>title>

        <style type="text/css">

            body {
                font-family: "微软雅黑";
                font-size: 18px;
            }

            * {
              -webkit-box-sizing: border-box;
                 -moz-box-sizing: border-box;
                      box-sizing: border-box;
            }

            .head {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                height: 80px;
                background: #2B2B2B;
                color: white;
                padding: 5px;

            }

            .left {
                position: fixed;
                top: 80px;
                width: 200px;
                background: #7F7F7F;
                margin: 0px;
                left: 0px;
                bottom: 20px;
                padding: 5px;
            }
            .main {
                position: absolute;
                top: 80px;
                left: 200px;
                bottom: 20px;
                right: 0px;
                height: 1000px;
                background: #EBEBEB;
                padding: 5px;
                margin: 0px;
                z-index: -1;
            }
            .foot {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                height: 30px;
                background: #2B2B2B;
                text-align: center;
                color: white;
                padding: 3px;
                font-size: 13px;
            }

            ul li {
                list-style-type:none;
                margin: 5px;
            }

            ul li a {
                text-decoration: none; 
                color: #000000; 
            }

            table {
                border-top: 1px solid;
                border-left: 1px solid;
                border-color: #828282;
                border-collapse: collapse;   
                border-spacing: 0px;
                width: 100%;
            }

            table tr td,table tr th {
                padding: 5px;
                border-bottom: 1px solid;
                border-right: 1px solid;
                border-color: #828282;
                margin: 0px;
            }

            tr:nth-child(odd){background-color:#FFE4C4;}
            tr:nth-child(even){background-color:#F0F0F0;}

            table tr th {
                background: #828282;    
            }


        style>
    head>
    <body>

        <div class="head">标准界面div>
        <div class="left">
            <ul>
                <li>
                    <a href="#">我的菜单a>
                li>
                <li>
                    <a href="#">CSS精讲a>
                li>
            ul>
        div>
        <div class="main">

            <h1>如有疑问联系 [email protected]h1>
            <h2>热衷hbuilder mui开发apph2>

            <table >
                <tr>
                    <th>姓名th>
                    <th>科目th>
                    <th>成绩th>
                    <th>名次th>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>
                <tr>
                    <td>王加急td>
                    <td>语文td>
                    <td>99td>
                    <td>3td>
                tr>

            table>

        div>
        <div class="foot">版权所有 [email protected] 2016div>

    body>
html>

你可能感兴趣的:(简单的HTML网页框架)