以下是引用片段:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>homepage.yesky.com</title>
<style type="text/CSS">
.graph {
position: relative; /* IE is dumb */
width: 200px;
border: 1px solid #B1D632;
padding: 2px;
}
.graph .bar {
display: block;
position: relative;
background: #B1D632;
text-align: center;
color: #333;
height: 2em;
line-height: 2em;
}
.graph .bar span
</style>
</head>
<body>
<div class="graph">
<strong class="bar" style="width: 24%;">24%</strong>
</div>
<br />
<div class="graph">
<strong class="bar" style="width: 60%;">60%</strong>
</div>
</body>
</html> |