• css书写轮播图样式


    1.效果图

    2.代码

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <style>
        *{
            padding:0px;
            margin: 0px;
        }
        li {
            list-style: none;
        }
            .taobao {
                 520px;
                height: 280px;
                background-color: pink;
                margin:100px auto;
                position: relative;
            }
            .arrow-l {
                position: absolute;
                top:50%;
                left:0px;
                 20px;
                height: 30px;
                background-color: pink;
                text-decoration: none;
                margin-top:-15px;
                background: rgba(0,0,0,.2);
                color:#fff;
                text-align: left;
                line-height: 30px;
                border-top-right-radius: 20px;
                border-bottom-right-radius:20px; 
            }
            .arrow-r {
                position: absolute;
                top:50%;
                right:0px;
                 20px;
                height: 30px;
                background-color: pink;
                text-decoration: none;
                margin-top:-15px;
                background: rgba(0,0,0,.2);
                color:#fff;
                text-align: right;
                line-height: 30px;
                border-top-left-radius: 20px;
                border-bottom-left-radius:20px; 
            }
            .arrow-l:hover,.arrow-r:hover {
                background: rgba(0,0,0,.4);
            }
            .circle {
                position: absolute;
                 70px;
                height: 13px;
                background:rgba(255,255,255,.4);
                bottom: 15px;
                left:50%;
                margin-left:-35px;
                border-radius: 7px;
            }
            .circle li {
                 8px;
                height: 8px;
                border-radius: 50%;
                background-color: #fff;
                float:left;
                margin:3px;
            }
            .circle .current {
                background-color: #ff5000;
            }
        </style>
    </head>
    <body>
        <div class="taobao">
            <a href="#" class="arrow-l"><</a>
            <img src="images/taobao.jpg" alt="">
            <a href="#" class="arrow-r">></a>
            <ul class="circle">
                <li></li>
                <li class="current"></li>
                <li></li>
                <li></li>
                <li></li>
            </ul>
        </div>
    </body>
    </html>
  • 相关阅读:
    Unix UTC时间转化为本地时间的一个MFC实现
    不规则按钮Button修正版
    不规则按钮,支持普通Button,Radio Button, Check Button
    Kimi ga Suki da to Sakebitai
    将adb for visual studio 从26升级29版本
    直到世界的尽头
    Your Song
    Win32创建后台进程
    全金属外壳的歌词
    C#获取本机IP(排除IPV6,仅获取IPV4)的方法转载
  • 原文地址:https://www.cnblogs.com/zh718594493/p/15626539.html
Copyright © 2020-2023  润新知