CSS Gradient Statistics Column Chart _ Experience Exchange

Source: Internet
Author: User

The

is used as the length of a gradient for the diagram tool. It looks good. (width: 187px; high 15px)
It was supposed to be when 12%, the picture is displayed from left to 12%, the remaining 88% does not appear, but does not occupy the floor (it looks like the bottom of the 1px picture is no different). In the afternoon I went to recruit a class. It is not possible to find that it is not occupied.
to hide the remaining percentage of the picture, think of the score first. Light and dark used a picture, each accounted for half the total height of the picture. I wrote down:
<div style= "Background:url (...) 12 % left;width:187px;height:15px; " ></div>
In order from 10%-100%, see no effect, change <span></span> this is ok but in the box must have content. The
was not written last night. Google did not find the class 4 gradient in the afternoon. However, it was inspired by one of the examples.
url:http://apples-to-oranges.com/blog/post/ Css-for-bar-graphs/?id=55
: Complex CSS bar Graph
immediately got this:  

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "content=" text/html; charset=gb2312 "/> <title> Untitled document </title> <style type=" Text/css "> Dl{margin:0;padding:0;width : 187px;} dd{position:relative;display:block;float:left;width:187px;height:15px margin:0;border:1px solid #eee; * HTML dd{Float:none;} DD Div{position:relative;background:url (".. /image/default/percent.gif "); height:15px;width:100%;text-align:right;} </style> </pead> <body> <dl> <dd> <div ></div> </dd> </dl> <dl> <dd> <div ></div> </dd> </dl> <dl> <dd> <div ><strong >55%</strong></div> </dd> </dl> <dl> <dd> <div ><strong>55%</s Trong></div> </dd> </dl> <dl> <dd> <div ><strong>55%</strong></div> ;/dd> </dl> <dl> <dd> <div ><strong>55%</strong></div> </dd> < /dl> <dl> <dd> <div ><strong>65%</strong></div> </dd> </dl> <d l> <dd> <div ><strong>75%</strong></div> </dd> </dl> <dl> <dd& Gt <div ><strong>85%</strong></div> </dd> </dl> <dl> <dd> <div &GT;&L t;strong>95%</strong></div> </dd> </dl> <dl> <dd> <div ><strong>1 00%</strong></div> </dd> </dl> </body> </ptml>
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]

Brothers with the same needs can refer to

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.