• 天猫消息盒子的CSS实现


    css:

    body,h2,h3,ul,p{margin:0;padding:0;font-size:12px;}
        li{list-style: none; }
        a{text-decoration: none;}
        img{border:none;vertical-align: top;}
        .clear{zoom:1;}
        .clear:after{content: "";display: block;clear: both;}
    
        .wrap{740px;padding:13px 18px 0 5px;margin:30px auto;background: #fdf8f1;}
        .head{padding-bottom:2px;background: url("pic2.gif") no-repeat 0 bottom;}
        .head .title{font-size: 16px;color:#867c7b;font-weight:bold;}
        .head ul{padding-top: 6px;}
        .head li{100px;line-height: 23px;font-size: 12px;background-color: #eaddcc;float: left;text-align: center;margin-right: 1px;}
        .head li a{color:#595959;display: block;}
        .head li.special a{background-color:#806f66;color:#ffffff;}
        .list li{height:120px;border-bottom: 1px solid #e3e3e3;background: url("pic3.gif") no-repeat 32px 16px;}
        .list li .text{padding-left: 98px;padding-top:17px;18px;font-size: 12px;}
        .list .text .smallTitle{color:#806f66;line-height: 20px;}
    
        .list .text p{color:#666666;line-height:20px; }
        .list .text  p strong{color:#666666;font-weight: bold;}
        .list .text .more{color: #806f66;text-decoration: underline;}

    html:

    <div class="wrap ">
        <div class="head clear">
            <p class="title">消息盒子</p>
            <ul>
                <li><a href="#">未读</a></li>
                <li class="special"><a href="#">全部</a></li>
                <li><a href="#">我的成长</a></li>
                <li><a href="#">特权活动</a></li>
                <li><a href="#">系统消息</a></li>
                <li><a href="#">其他</a></li>
            </ul>
        </div>
        <div class="list">
            <ul>
                <li>
                    <div class="text">
                        <a href="#" class="smallTitle">天猫俱乐部</a>
                        <p><strong>天猫达人经验值发放成功</strong><span>&nbsp&nbsp您上个月购买的天猫商品,总共获得1600经验值已发放成功1111111111111111111111111111111111111<a href="#" class="more">点击查看</a><span></p>
                    </div>
                </li>
                <li>
                    <div class="text">
                        <a href="#" class="smallTitle">天猫俱乐部</a>
                        <p><strong>天猫达人经验值发放成功</strong><span>&nbsp&nbsp您上个月购买的天猫商品,总共获得1600经验值已发放成功<a href="#" class="more">点击查看</a><span></p>
                    </div>
                </li>
                <li>
                    <div class="text">
                        <a href="#" class="smallTitle">天猫俱乐部</a>
                        <p><strong>天猫达人经验值发放成功</strong><span>&nbsp&nbsp您上个月购买的天猫商品,总共获得1600经验值已发放成功<a href="#" class="more">点击查看</a><span></p>
                    </div>
                </li>
            </ul>
        </div>
    </div>
  • 相关阅读:
    Python语言之并发编程
    python语言之系统工具
    python语言之正则
    python语言之字符串与字节
    Python语言之持久化
    Python语言之数字格式化与时间
    Python语言之异常处理与测试
    Java-AQS源码详解(细节很多!)
    redis的主从复制原理
    Amdahl定律和可伸缩性
  • 原文地址:https://www.cnblogs.com/shytong/p/5005749.html
Copyright © 2020-2023  润新知