美文网首页
2018-09-12作业

2018-09-12作业

作者: 背对背吧 | 来源:发表于2018-09-12 22:04 被阅读0次

    1).导航条

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8" />
    <title>12321</title>
    <style type="text/css">

    • {
      margin:0;
      padding: 0;
      }
      body{
      font: 14px 微软雅黑;
      }
      .box{
      list-style: none;
      width: 960px;
      height: 40px;
      margin: 100px auto;
      background-color: #55a8ea;
      overflow: hidden;
      }
      .box li{
      float: left;
      width: 100px;
      }
      .box a{
      display: block;
      text-align: center;
      padding: 11px 0;
      color:white;
      text-decoration:none;
      }
      .box a:hover{
      background-color: #00619f;
      }
      </style>

    </head>
    <body>
    <ul class="box">
    <li><a href="#">首页</a></li>
    <li><a href="#">网站建设</a></li>
    <li><a href="#">程序开发</a></li>
    <li><a href="#">网络营销</a></li>
    <li><a href="#">企业VI</a><img src='new.png' style="position:absolute;margin-left:35px;margin-top:-50px;"></li>
    <li><a href="#">案例展示</a></li>
    <li><a href="#">联系我们</a></li>
    </ul>
    </body>
    </html>


    01.PNG

    2).图片列表

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8" />
    <title>12321</title>
    <style type="text/css">

    • {
      margin:0;
      padding: 0;
      }
      .box{
      width: 960px;
      height: 269px;
      border: 1px solid black;
      background-color: whitesmoke;
      margin: 100px auto;

    }
    .box1{
    overflow: hidden;
    margin-left: 20px;
    padding: 12.5px;
    font: bold 18px '微软雅黑';
    }
    .box2{
    width:920px;
    height: 219px;
    border-top: solid 1px black;
    margin:0 auto;
    }
    .p1{padding: 20px 12.5px 0px 0px}
    .p2{float: right;
    padding: 20px 0px 0px 12.5px}
    .p3{padding: 25px 12.5px 38px 0px}
    .p4{float: right;
    padding: 25px 0px 38px 12.5px}

    .p5{padding: 20px 12.5px 0px 12.5px }
    .p6{padding: 25px 12.5px 38px 12.5px}
    </style>

    </head>
    <body>
    <div class='box'>
    <div class='box1'>图片展示</div>
    <div class="box2">
    <img class="p1" src="goods.jpg" alt="图片">
    <img class="p5" src="goods.jpg" alt="图片">
    <img class="p5" src="goods.jpg" alt="图片">
    <img class="p5" src="goods.jpg" alt="图片">
    <img class="p2" src="goods.jpg" alt="图片">

            <img class="p3" src="goods.jpg" alt="图片">
            <img class="p6" src="goods.jpg" alt="图片">
            <img class="p6" src="goods.jpg" alt="图片">
            <img class="p6" src="goods.jpg" alt="图片">
            <img class="p4" src="goods.jpg" alt="图片">
        </div>
    </div>
    

    </body>
    </html>

    02.PNG

    相关文章

      网友评论

          本文标题:2018-09-12作业

          本文链接:https://www.haomeiwen.com/subject/gjxigftx.html