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
  • 相关阅读:
    hdu 3265 Posters(线段树+扫描线+面积并)
    hdu 3974 Assign the task(线段树)
    hdu 1540 Tunnel Warfare(线段树)
    poj 2777 Count Color(线段树(有点意思))
    用Flask+Redis维护Cookies池
    用代理抓取微信文章
    Idea-常用快捷键列表
    用Flask+Redis维护代理池
    Selsnium-Chrome-PhantomJS-爬取淘宝美食
    分析Ajax请求抓取今日头条街拍图片
  • 原文地址:https://www.cnblogs.com/youth0826/p/1233810.html
Copyright © 2011-2022 走看看