zoukankan      html  css  js  c++  java
  • Html5 手机端网页

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=no,
        width=device-width,initial-scale=1.0" />
        <title></title>
        <style>
            body
            {
                margin: 0;
            }
            header
            {
                width: 100%;
                height: 50px;
                background: #AEFEEE;
            }
            header h4
            {
                display: inline;
            }
            aside
            {
                width: 20%;
                height: 540px;
                background: #708090;
                float: left;
            }
            
            section
            {
                width: 80%;
                height: 540px;
                background: #D8BFD8;
                float: left;
                overflow: auto;
            }
            footer
            {
                width: 100%;
                height: 50px;
                background: green;
                clear: left;
            }
            figure
            {
                padding: 0;
            }
            img
            {
                max-width: 70%;
            }
            ul
            {
                list-style-type: none;
            }
            
            footer li
            {
                display:inline;
            }
        </style>
    </head>
    <body>
        <header>
        <hgroup>
        <img src="../Images/bb.png" width="30px"/>
         <h4>移动端页面练习</h4>
        </hgroup>
         
        </header>
        <aside>
            <nav>
             <ul>
                <li>
                    <a href="">
                    <img src="../Images/bb.png" width="30px"/>
                    </a>
                </li>
                  <li>
                    <a href="">
                    <img src="../Images/bb.png" width="30px"/>
                    </a>
                </li>
                  <li>
                    <a href="">
                    <img src="../Images/bb.png" width="30px"/>
                    </a>
                </li>
            </ul>
            </nav>
        </aside>
        <section>
            <figure>
                <img src="../Images/bb.png" alt="" width="45%"  />
                <img src="../Images/bb.png" alt="" width="45%" />
            </figure>
            <figcation>衣服</figcation>  
             <figure>
                <img src="../Images/bb.png" alt="" width="40%"  />
                <img src="../Images/bb.png" alt="" width="40%" />
            </figure>
            <figcation>衣服</figcation>    
             <figure>
                <img src="../Images/bb.png" alt="" width="40%"  />
                <img src="../Images/bb.png" alt="" width="40%" />
            </figure>
            <figcation>衣服</figcation>    
             <figure>
                <img src="../Images/bb.png" alt="" width="40%"  />
                <img src="../Images/bb.png" alt="" width="40%" />
            </figure>
            <figcation>衣服</figcation>    
             <figure>
                <img src="../Images/bb.png" alt="" width="40%"  />
                <img src="../Images/bb.png" alt="" width="40%" />
            </figure>
            <figcation>衣服</figcation>          
        </section>
        <footer>
          <nav>
             <ul>
                <li>
                    <a href="">
                    <img src="../Images/bb.png" width="30px"/>
                    </a>
                </li>
                  <li>
                    <a href="">
                    <img src="../Images/bb.png" width="30px"/>
                    </a>
                </li>
                  <li>
                    <a href="">
                    <img src="../Images/bb.png" width="30px"/>
                    </a>
                </li>
            </ul>
            </nav>
        </footer>
    </body>
    </html>

    天生我材必有用,千金散尽还复来
  • 相关阅读:
    文件操作类2
    C# 统计文章中字符的种类和个数 哈希表和字典的使用
    hdu 1018 Big Number (求一个数的阶乘的位数,公式!!!)
    hdu 4313 Matrix (最小生成树krusual)
    孙子定理,求余定理
    poj 1005 Biorhythms (孙子定理,求余定理)
    poj 2151 Check the difficulty of problems (DP)
    poj1861/zoj1542 (最小生成树krusual)
    hdu 1256 画8 (模拟)
    hdu 2082 找单词 (母函数)
  • 原文地址:https://www.cnblogs.com/ligenyun/p/7862506.html
Copyright © 2011-2022 走看看