ÔÀí£º
µ±Á½¸öͬ¸¸ÔªËØz-indexÏàͬʱ£¬ºóÃæµÄÔªËØÏÔʾÔÚÉÏÃæ¡£
µ±z-index³¬¹ýä¯ÀÀÆ÷×î´óֵʱ£¬ä¯ÀÀÆ÷»á°´×î´óÖµ¼ÆËã¡£
·½·¨£º
Á¬Ðø·ÅÖÃÁ½¸ödivÔªËØd1£¬d2£»²¢É趨position:absolute¼°²»Í¬±³¾°É«¡£
É趨d1.z-index = max + 1, d2.z-index = max£»
µ±max + 1ÓÐЧʱ£¬d1ÔÚÇ°£»µ±max + 1 ÎÞЧʱ£¬d2ÔÚÇ°¡££¨²Î¿´ÔÀí£©
É趨d1.z-index = min, d2.z-index = min - 1£»
µ±min - 1ÓÐЧʱ£¬d1ÔÚÇ°£»µ±min - 1 ÎÞЧʱ£¬d2ÔÚÇ°¡££¨²Î¿´ÔÀí£©
½á¹û£º
ver.
max
min
typeof(div.style.zIndex)
IE
8.0
2147483647
-2147483648
number
Chrome
3.0.195
2147483647
-2147483648
string
FF
3.5.7
2147483645
-2147483647
string
Opera
10.10
2147483584
-2147483584
string
½áÂÛ£º
µ±ÐèÒª¼æÈÝÒÔÉÏËùÓÐä¯ÀÀÆ÷ʱ£¬z-indexÐèʹÓà -2147483584 ~ 2147483584 ·¶Î§ÄÚµÄÊý×Ö
......
body{ background:#FFFFFF; font-size:12px; font-family:‘ËÎÌå’, Arial, Helvetica, sans-serif;}
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,table,th,td,
img{margin:0;padding:0;}
.partA,.partB,.partC,.partD,.partE,.partF,.partG,.partH,.partI,.partJ,.partK,.partL,.partM,.partN,.partO,.partP,
.partQ,.partR,.partS,.partT,.partU,.partV,.partW,.partX,.partY,.partZ{ overflow:hidden;zoom:1;}
a{ text-decoration:none;}
a:link{ color:#333;}
a:visited{ color:#333;}
a:hover{ color:#F00; text-decoration:underline;}
a:active{ color:#333;}
ul,ol,li{ list-style:none;}
img{ border:0px;}
textarea,input,select{ font-size:12px;}
table {border-collapse: separate;border-spacing: 0;}
h1 {font-size:16px;}
h2 {font-size:16px;font-weight:normal;}
h3 {font-size:14px;}
h4 {font-size:14px;font-weight:normal;}
h5 {font-size:12px;}
h6 {font-size:12px ......
/* Cascading Style Sheet for IE4.01 last updated 10-16-97 */
DIV {COLOR: #333333; FONT-FAMILY: "ËÎÌå", "Arial", "Tahoma"; FONT-SIZE: 9pt}
P {COLOR: #333333; FONT-FAMILY: "ËÎÌå", "Arial", "Tahoma"; FONT-SIZE: 9pt}
TD {COLOR: #333333; FONT-FAMILY: "ËÎÌå", "Arial", "Tahoma"; FONT-SIZE: 9pt}
BODY {COLOR: #333333; FONT-FAMILY: "ËÎÌå", "Arial", "Tahoma"; FONT-SIZE: 9pt}
A {font-family: "ËÎÌå"; font-size: 9pt; color: #333333; text-decoration: none}
A:Link {font-family: "ËÎÌå"; font-size: 9pt; color: #333333; text-decoration: underline}
A:Hover{font-family: "ËÎÌå"; font-size: 9pt; color: #3399CC; text-decoration: none}
A:Visited {font-family: "ËÎÌå"; font-size: 9pt; color: #663333; text-decoration: underline}
.lefty div {font-family: "ËÎÌå"; font-size: 9pt; color: #996633; text-decoration: none }
.lefty td {font-family: "ËÎÌå"; font-size: 9pt; color: #996633; text-decoration: none }
.lefty A {font-family: "ËÎÌå"; font-size: 9pt; color: #CC9933; text-decoration: none}
.lefty A: ......
תÔØÓÚ ÂÞÂí¼¯ÊÐ
MagentoµÄCSSÎļþÒ»°ã´æ·Åµ½ $MAGENTO_INSTALLED_FOLDER/skin/{frontend | admin |
install}/<package name>/<theme
name>/cssĿ¼Ï¡£Ò²ÓÐЩºÍÈ«¾Öjs½Å±¾ÅäºÏʹÓõÄcssÎļþ´æ·ÅÔÚ$MAGENTO_INSTALLED_FOLDER/jsÏ£¬µ«ÊÇÒ»
°ãÎÒÃDz»Ö±½Óµ÷ÓÃËüÃÇ¡£
ÄÇôMagentoÓ¦ÓÃÓÖÊÇÈçºÎÒýÓÃCSSÎļþµÄÄØ£¿
·½Ê½I. ×îÒ»°ãµÄ·½·¨ÊÇÅäÖÃÈ«¾Öblock. ÔÚpage.xmlÖÐÓÐ
Xml´úÂë
<
default
>
<
block
type
=
"page/html"
name
=
"root"
output
=
"toHtml"
template
=
"page/3columns.phtml"
>
<
block
type
=
"page/html_head"
name
=
"head"
as
=
"head"
>
<
action
method
=
&qu ......
µ±Äã¿´µ½<input>Õâ¸öhtml±êÇ©µÄʱºò£¬Äã»áÏ뵽ʲô£¿Ò»¸öÎı¾¿ò£¿Ò»¸ö°´Å¥£¿Ò»¸öµ¥Ñ¡¿ò£¿Ò»¸ö¸´Ñ¡¿ò£¿……¶Ô£¬¶Ô£¬¶Ô£¬ËüÃǶ¼¶Ô¡£Ò²ÐíÄã¿ÉÄÜÏë²»µ½£¬Õâ¸öССµÄinput¾¹È»¿ÉÒÔ´´Ôì³ö10¸ö²»Í¬µÄ¶«Î÷£¬ÏÂÃæÊǸöÁÐ±í£¬¿´¿´£¬ÄÄЩÊÇÄãûÓÐÏëµ½µÄ£º
<input type="text" /> Îı¾¿ò
<input type="password" /> ÃÜÂë¿ò
<input type="submit" /> Ìá½»°´Å¥
<input type="reset" /> ÖØÖð´Å¥
<input type="radio" /> µ¥Ñ¡¿ò
<input type="checkbox" /> ¸´Ñ¡¿ò
<input type="button" /> ÆÕͨ°´Å¥
<input type="file" /> ÎļþÑ¡Ôñ¿Ø¼þ
<input type="hidden" /> Òþ²Ø¿ò
<input type="image" /> ͼƬ°´Å¥
ËùÒÔÄã¿ÉÄÜ»á˵£¬inputÕæÊÇÒ»¸öΰ´óµÄ¶«Î÷£¬¾¹È»ÕâôÓГ¸ãÍ·”£¬µ«Êǵ±ÄãÕæÕýÔÚÏîÄ¿ÖÐÊÔͼ¸ø²»Í¬µÄ¿Ø¼þÉèÖò»Í¬µÄÑùʽʱ£¬Äã¾Í»á·¢ÏÖ£¬inputÕæµÄ¿ÉÒÔ°Ñ“ÄãµÄÍ·¸ã´ó”¡£ÎÒ²»ÖªµÀΪʲôµ±³õÒª¸øinput¸³ÓèÄÇô¶àÉí·Ý£¬µ«ÊÇ£¬ËûµÄ“NÖØÉí·Ý”¸øÍøÕ¾Éè¼ÆÕßµÄÈ·´øÀ´Á˲»ÉÙµÄÂé·³¡£ºÃÔÚ£¬ÀͶ¯ÈËÃñÊÇΰ´óµÄ£¬½â¾öÎÊÌâµÄ°ì·¨»¹ÊÇÓеΡ«£¬ËäÈ»ËüÃǶ¼Ó ......
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
In this example I am not using JavaScript or any backend application. All I rely on is well formed markup and css.
So, the goal is to present data chart. We could say that a chart is a
two dimensional object. So, the best structural and semantical choice
is definition list. Why? Well, for starter, it is a list of items.
Although the list is linear, we could interpret definition titles (dt
elements) as items on x axis and definition descriptions (dd elements)
as values on y axis.
If that doesn't make sense because of my poor explanation skills :) what I'll do here is turn this:
into this
with css alone.
The markup
In my example I have used a period of last 12 days and presented ......