zoukankan      html  css  js  c++  java
  • 一个带标号的CSS文章列表写法

    <title>CSS文章列表</title>
    <style type="text/css">
    *{margin:0;padding:0;list-style-type:none;}
    a,img{border:0;}
    a,a:visited{color:#5e5e5e; text-decoration:none;}
    a:hover{color:#b52725;text-decoration:underline;}
    .clear{display:block;overflow:hidden;clear:both;height:0;line-height:0;font-size:0;}
    body{font:12px/180% Arial, Helvetica, sans-serif;}
    .demo{width:440px;margin:40px auto;}
    /* ranklist */
    .ranklist{border:solid 1px #ddd;padding:10px 10px 0 10px;}
    .ranklist li{height:16px;line-height:16px;overflow:hidden;position:relative;padding:0 70px 0 30px;margin:0 0 10px 0;}
    .ranklist li em{background:url() no-repeat;width:20px;height:16px;overflow:hidden;display:block;position:absolute;left:0;top:0;text-align:center;font-style:normal;color:#333;}
    .ranklist li em{background-position:0 -16px;}
    .ranklist li.top em{background-position:0 0;color:#fff;}
    .ranklist li .num{position:absolute;right:0;top:0;color:#999;}
    </style>
    <div class="demo">
        <div class="ranklist">
            <ol>
                <li class="top"><em>01</em><p><a href="#" title="">jquery 图片滚动 xslider 插件</a></p><span class="num">56下载</span></li>
                <li class="top"><em>02</em><p><a href="#" title="">jquery tab选项卡插件</a></p><span class="num">12下载</span></li>
                <li class="top"><em>03</em><p><a href="#" title="">jquery 滚动 kxbdSuperMarquee插件</a></p><span class="num">19下载</span></li>
                <li><em>04</em><p><a href="#" title="">jquery 文字滚动大全</a></p><span class="num">88下载</span></li>
                <li><em>05</em><p><a href="#" title="">jquery 图片切换插件</a></p><span class="num">30下载</span></li>
                <li><em>06</em><p><a href="#" title="">jquery 表格插件:Tablesorter 2.0 </a></p><span class="num">55下载</span></li>
            </ol>
            <div class="clear"></div>
        </div>
    </div>
  • 相关阅读:
    Luogu P1160 【队列安排】
    Luogu P1566 【加等式】
    CF614A 【Link/Cut Tree】
    AT994 【11の倍数】
    Luogu P2310 【loidc,看看海】
    CF401D 【Roman and Numbers】
    【[国家集训队]小Z的袜子】
    UVA10212 【The Last Non-zero Digit.】
    Luogu P3384 【【模板】树链剖分】
    20161005 NOIP 模拟赛 T2 解题报告
  • 原文地址:https://www.cnblogs.com/toosuo/p/4230474.html
Copyright © 2011-2022 走看看