zoukankan      html  css  js  c++  java
  • 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="5%;"><strong>5%</strong></div>
        
    </dd>
        
    <dt>Ximicc</dt>
        
    <dd>
            
    <div style="55%;"><strong>55%</strong></div>
        
    </dd>
        
    <dt>Technique</dt>
        
    <dd>
            
    <div style="75%;"><strong>75%</strong></div>
        
    </dd>
    </dl>
    引用自:http://www.blueidea.com/tech/web/2008/5924_2.asp
  • 相关阅读:
    [Python] 糗事百科文本数据的抓取
    [Python] 文件扫描
    [Python] 根据博客园用户名抓取其所有文章的标题及其链接
    ParagraphString
    IrregularGridCollectionView处理不定宽度的标签cell
    Java多线程与并发
    设计模式之代理模式
    javascript设置百分比保留两位小数。
    Java基础知识总结(异常机制、集合、JUC、IO)
    Java底层知识JVM、GC
  • 原文地址:https://www.cnblogs.com/youth0826/p/1233810.html
Copyright © 2011-2022 走看看