zoukankan      html  css  js  c++  java
  • 轮播图样式

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>珠峰培训</title>
    <style>
    *{
    margin: 0;
    padding: 0;
    list-style: none;
    }
    #div1{
    600px;
    height: 260px;
    margin: 50px auto 0;
    overflow: hidden;
    position: relative;
    }
    .img_box{
    height: 260px;
    overflow: hidden;
    }
    .img_box li{
    float: left;
    600px;
    height: 260px;
    position: relative;
    background: #EFF3EF url("http://www.sucaijishi.com/uploadfile/2014/0524/20140524124241131.gif") no-repeat center;
    }
    .img_box li img{
    100%;
    height: 100%;
    }
    .img_box li p{
    position: absolute;
    background: rgba(0,0,0,0.5);
    100%;
    padding: 10px;
    color: #fff;
    bottom: 0;
    left: 0;
    }
    .btn_box .leftBtn,.btn_box .rightBtn{
    50px;
    height: 100px;
    line-height: 100px;
    text-align: center;
    background: rgba(0,0,0,0.5);
    color: #fff;
    position: absolute;
    top: 80px;
    font-size: 28px;
    }
    .btn_box .leftBtn{
    left: 0;
    }
    .btn_box .rightBtn{
    right: 0;
    }
    </style>
    </head>
    <body>
    <div id="div1">
    <ul class="img_box">
    <li>
    <img src="" alt="">
    <p>这是个解释</p>
    </li>
    <li></li>
    <li></li>
    </ul>
    <div class="btn_box">
    <div class="leftBtn"> < </div>
    <div class="rightBtn"> > </div>
    </div>
    </div>
    </body>
    </html>
    <script src="utils.js"></script>
    <script src="animate.js"></script>
    <script src="index.js"></script>
  • 相关阅读:
    华为机试题 二叉查搜索树 判断两序列是否为同一二叉搜索树序列
    华为机试题 火车进站
    Linux命令学习 rmdir
    Linux命令学习 rm
    Linux命令学习 mkdir
    Linux命令学习 du
    Linux命令学习 pwd
    Linux命令学习 ls
    Linux命令学习 cd
    伪代码编程过程
  • 原文地址:https://www.cnblogs.com/xieting123/p/9549363.html
Copyright © 2011-2022 走看看