CSS(十七):快报模块

  • 效果

  • 代码

    index.html

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="index.css">
    </head>
    <body>
    <div class="box">
    <h3>快报</h3>
    <ul>
    <li><a href="#">【特惠】爆款耳机5折秒!</a></li>
    <li><a href="#">【特惠】母亲节,健康好礼低至5折!</a></li>
    <li><a href="#">【特惠】爆款耳机5折秒!</a></li>
    <li><a href="#">【特惠】9.9元洗100张照片!</a></li>
    <li><a href="#">【特惠】长虹智能空调立省1000</a></li>
    </ul>
    </div>
    </body>
    </html>

    index.css

    * {
    padding: 0px;
    margin: 0px;
    }
    li {
    list-style: none;
    }
    .box {
    width: 248px;
    height: 163px;
    border: 1px solid #ccc;
    margin: 100px auto;
    }
    .box h3 {
    height: 32px;
    border-bottom: 1px dotted #ccc;
    font-size: 14px;
    font-weight: 400;
    line-height: 32px;
    padding-left: 15px;
    }
    .box ul li a {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    }
    .box ul li {
    height: 23px;
    line-height: 23px;
    padding-left: 20px;
    }
    .box ul {
    margin-top: 7px;
    }
    .box ul li a:hover {
    text-decoration: underline;
    }
posted @   pure3417  阅读(45)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· 什么是nginx的强缓存和协商缓存
· 一文读懂知识蒸馏
· Manus爆火,是硬核还是营销?
点击右上角即可分享
微信分享提示