您的位置:首页 > Web前端 > CSS

CSS条状图表:复合型

2019-08-09 12:33 489 查看
原文链接:https://www.geek-share.com/detail/2425968142.html CSS条状图表:复合型 <style>
    dl { 
        margin: 0; 
        padding: 0;                     
    }
    dt { 
        position: relative; /* IE is dumb */
        clear: both;
        display: block; 
        float: left; 
        width: 104px; 
        height: 20px; 
        line-height: 20px;
        margin-right: 17px;              
        font-size: .75em; 
        text-align: right; 
    }
    dd { 
        position: relative; /* IE is dumb */
        display: block;                 
        float: left;     
        width: 197px; 
        height: 20px; 
        margin: 0 0 15px; 
        background: url("http://www.cnblogs.com/images/cnblogs_com/youth0826/143133/r_03.jpg"); 
     }
     * html dd { float: none; } 
    /* IE is dumb; Quick IE hack, apply favorite filter methods for 
    wider browser compatibility */

     dd div { 
        position: relative; 
        background: url("http://www.cnblogs.com/images/cnblogs_com/youth0826/143133/r_04.jpg"); 
        height: 20px; 
        text-align:right; 
     }
     dd div strong { 
        position: absolute; 
        right: -5px; 
        top: -2px; 
        display: block; 
        background: url("http://www.cnblogs.com/images/cnblogs_com/youth0826/143133/r_05.gif"); 
        height: 24px; 
        width: 9px; 
        text-align: left;
        text-indent: -9999px; 
        overflow: hidden;
     }
</style>
<dl>
    <dt>Spring</dt>
    <dd>
        <div style="width:5%;"><strong>5%</strong></div>
    </dd>
    <dt>Ximicc</dt>
    <dd>
        <div style="width:55%;"><strong>55%</strong></div>
    </dd>
    <dt>Technique</dt>
    <dd>
        <div style="width:75%;"><strong>75%</strong></div>
    </dd>
</dl>
引用自:http://www.blueidea.com/tech/web/2008/5924_2.asp posted on 2008-07-02 11:09 Shicai Yang 阅读(...) 评论(...) 编辑 收藏

转载于:https://www.geek-share.com/detail/2425968142.html

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: