CSS¿ØÖÆ×ó±ß¹Ì¶¨£¬ÓÒ±ß×ÔÓÉÉìÕ¹
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ÎÞ±êÌâÎĵµ</title>
<style>
.main{position:relative;width:100%}
.left{position:absolute;width:200px;border:solid 1px red; height:200px;}
.right{ margin-left:200px;/*ÕâÀï¾àÀëºÍ×ó±ß¿í¶ÈÒ»Ñù¼´¿É*/border:solid 1px red; height:200px;}
</style>
</head>
<body >
<div class="main">
<div class="left">
</div>
<div class="right">
</div>
</div>
</body>
</html>
Ïà¹ØÎĵµ£º
Data visualization is mostly achieved with flash applications or
with help of some programming languages. Are those solutions the only
way to present, let's say simple data chart? How about giving it a try
with nothing but good ol' css?
Take a look at the Demo
| Download Css Chart
Approach
......
W3School:http://www.w3school.com.cn/css/index.asp
Ó¢ÎİæÍøÖ·£ºhttp://www.w3schools.com/css/default.asp
×÷Ϊ³õѧÕߣ¬ÕâÊÇÒ»¶¨ÒªÊղصÄÍøÕ¾¡£Õâ¾ÍÏ൱ÓÚÒ»±¾CSSÈëÃŽ̳̣¬ÔÚ´Ë¿ÉÒÔѧϰÿ¸ö±êÇ©£¬ÊôÐÔµÄÓ÷¨ºÍʵÀý£¬¿ÉÒÔ×Ô¶¯¶¯ÊÖʵ¼ù´úÂë¡£³ýÁËCSSµÄ֪ʶ£¬Õâ¸öÍøÕ¾»¹°üÀ¨ÁË´óÁ¿ÆäËûÍøÒ³¿ª·¢ÓïÑÔ½Ì³ÌºÍÆäËû֪ʶ¡£
CSS ......
ÈÃtreeview²»ÏÔʾtdÍø¸ñÏß gridviewÏÔÊ¾Íø¸ñÏß
HTML
<style type="text/css">
TD
{
font-size: 9pt;
  ......
position:relativeÔÚcssÉè¼ÆÖÐÓÐמÓסÇáÖØµÄ×÷Óã¬Èç¹ûÄ㻹ûÓÐÓùýËüÄÇ̫;ÊǾ޴óµÄÒź¶£¬ÒÔǰ×ö¹ýdiv titleÌáʾ¿òµÄʱºòÓиö¼ýÍ·¶¨Î»ÎÊÌ⣬µ±Ê±µÄ½â¾ö°ì·¨¾ÍÊǶàÌ×ÓÃÒ»²ãdiv²¢ÇÒÁô°×Ò»¶¨´óС£¬ÓÃÀ´±³¾°ÏÔʾ¼ýÍ·£¬µ«ÊÇ·¢ÏÖ¼ýÍ·ÓÀÔ¶ÔÚÏÂÃæ£¬Ã»Óа취ÕÚ¸Ç
Ö÷ÌåÈںϵIJ¿·Ö
£¬ËùÒÔЧ¹ûÒ²¾Í²»ºÃ£¬µ±È»£¬´ÏÃ÷µÄÄ ......
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>˫ɫ±í¸ñCSSʵÀý</title>
<style type="text/css">
#DataGrid1 tr {
background-color: expression(
this.sectio ......