前端小练习-产品宣传栏

20240620091548691-image

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>美容热点产品</title>
    <style>
        body{
            background-color: #eee7e1;
        }
        ul{
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .center{
            background-color: #fff;
            width: 350px;
            border-radius: 10px;
        }
        .titlemeirong{
            padding-left: 20px;
            color: #fff;
            font-weight: 800;
            background-color: #e9185a;
            line-height: 40px;
            font-size: 18px;
            height: 40px;
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
        }
        .nskad{
            height: 40px;
            line-height: 40px;
            border-bottom-style: dashed;
            width: 350px;
            border-width: 1px;
        }
        .dna{
            display: inline-block;
            width: 30px;
            height: 30px;
            background-color: black;
            border-radius: 50%;
            color: #fff;
            line-height: 30px;
        }
        a{
            text-decoration: none;
            color: inherit;
        }
        a:hover{
            color: #e92160;
        }
        a:hover .dna{
            background-color: #e92160;
        }
    </style>
</head>
<body>
    <div class="center">
        <div class="titlemeirong">
            大家都喜欢买的美容品
        </div>
        <ul>
            <li class="nskad"><a href=""><span class="dna">&ensp;1</span> 雅诗兰黛即时修护眼部精华箱15ml</a></li>
            <li class="nskad"><a href=""><span class="dna">&ensp;2</span> 伊丽莎白雅顿显效复合活肤霜 75ml</a></li>
            <li class="nskad"><a href=""><span class="dna">&ensp;3</span> OLAY玉兰油多效修护霜 50g</a></li>
            <li class="nskad"><a href=""><span class="dna">&ensp;4</span> 三型 号丝瓜水320ML</a></li>
            <li class="nskad"><a href=""><span class="dna">&ensp;5</span> 情碧保湿洁肤水2号 200ml</a></li>
            <li class="nskad"><a href=""><span class="dna">&ensp;6</span> 比度克细肤淡印霜 30g</a></li>
            <li class="nskad"><a href=""><span class="dna">&ensp;7</span> 兰芝(LANEIGE)夜间修护锁水面膜 80ml</a></li>
            <li class="nskad"><a href=""><span class="dna">&ensp;8</span> SK-II护肤精华露 215ml</a></li>
            <li class="nskad"><a href=""><span class="dna">&ensp;9</span> 欧莱雅青春密码活颜精华肌底液</a></li>
        </ul>
    </div>
   

    
</body>
</html>

 

 

用云无忧
© 版权声明
THE END
喜欢就支持一下吧
点赞11 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容