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>
  • 相关阅读:
    奶牛碑文
    快速幂算法——人见人爱A^B
    杨辉三角
    iis404 没有设置mime的后缀
    jquery的click和js的funcition中的参数不一样
    asp:timer的权限与操作注意
    .net 文件上传,只上传修改的东西
    vscode的配置 和xdebug配制
    emoji编码后存储
    php 服务器请求其它网页的方法
  • 原文地址:https://www.cnblogs.com/xieting123/p/9549363.html
Copyright © 2011-2022 走看看