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 >&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