当前位置:网站首页>Taobao focus map layout practice

Taobao focus map layout practice

2022-07-06 02:42:00 Ruoshui CJJ

 Insert picture description here
 Insert picture description here

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> Taobao focus map </title>
    <style>
        * {
    
            padding: 0%;
        }
        .tb-promo {
    
            position: relative;
            width: 564px;
            height: 315px;
            margin: 100px auto;

        }

        .tb-promo img {
    
            width: 100%;
            border-radius: 12px;
        }

        li {
    
            list-style: none;
        }

        a {
    
            position: absolute;
            width: 20px;
            height: 30px;
            background: rgba(0, 0, 0, .3);
            text-align: center;
            line-height: 30px;
            /*  Added absolute positioning a Will become a block element , You can set the width and height directly  */
            text-decoration: none;
            color: #fff;
        }

        .prev {
    
            bottom: 0;
            top: 0;
            left: 0;
            margin: auto 0;
            border-top-right-radius: 15px;
            border-bottom-right-radius: 15px;
        }

        .next {
    
            bottom: 0;
            top: 0;
            right: 0;
            margin: auto 0;
            border-top-left-radius: 15px;
            border-bottom-left-radius: 15px;
        }

        .promo-nav {
    
            position: absolute;
            bottom: 15px;
            left: 0;
            right: 0;
            margin: 0 auto;
            width: 70px;
            height: 13px;
            background: rgba(0, 0, 0, .3);
            border-radius: 6px;
        }

        .promo-nav li {
    
            float: left;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: skyblue;
            margin: 3px 3px;
        }
        .promo-nav .selected {
    
            /*  Cover .promo-nav li  Pay attention to the weight of the color in , Insufficient weight , Can't cover  */
            background-color: orange;
        }
    </style>
</head>

<body>
    <div class="tb-promo">
        <img src="img/focus.jpg" alt="">
        <!--  Left arrow  -->
        <a href="#" class="prev">&lt;</a>
        <!--  Right arrow  -->
        <a href="#" class="next">&gt;</a>
        <!--  Little dots  -->
        <ul class="promo-nav">
            <li class="selected"></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>
</body>

</html>
原网站

版权声明
本文为[Ruoshui CJJ]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060235377926.html