ͨ¹ýHTML ×¢ÊÍÐÔÓï·¨ÅжÏIE°æ±¾
Example:
1.<!--[if !IE]><!--> ³ýIEÍâ¶¼¿Éʶ±ð <!--<![endif]-->
2.<!--[if IE]> ËùÓеÄIE¿Éʶ±ð <![endif]-->
3.<!--[if IE 5.0]> Ö»ÓÐIE5.0¿ÉÒÔʶ±ð <![endif]-->
4.<!--[if IE 5]> ½öIE5.0ÓëIE5.5¿ÉÒÔʶ±ð <![endif]-->
5.<!--[if gt IE 5.0]> IE5.0ÒÔ¼°IE5.0ÒÔÉϰ汾¶¼¿ÉÒÔʶ±ð <![endif]-->
6.<!--[if IE 6]> ½öIE6¿Éʶ±ð <![endif]-->
7.<!--[if lt IE 6]> IE6ÒÔ¼°IE6ÒÔϰ汾¿Éʶ±ð <![endif]-->
8.<!--[if gte IE 6]> IE6ÒÔ¼°IE6ÒÔÉϰ汾¿Éʶ±ð <![endif]-->
9.<!--[if IE 7]> ½öIE7¿Éʶ±ð <![endif]-->
10.<!--[if lt IE 7]> IE7ÒÔ¼°IE7ÒÔϰ汾¿Éʶ±ð <![endif]-->
Explain:
1.lt£ºless than µ±Ç°Ö¸¶¨°æ±¾ÒÔÏ£¬²»°üº¬µ±Ç°°æ±¾
2.gt£ºgreater than µ±Ç°Ö¸¶¨°æ±¾ÒÔÉÏ£¬²»°üº¬µ±Ç°°æ±¾
3.lte£ºless than or equal µ±Ç°Ö¸¶¨°æ±¾ÒÔÏ£¬°üº¬µ±Ç°°æ±¾(µÈÓÚ)
4.gte£ºgreater than or equal µ±Ç°Ö¸¶¨°æ±¾ÒÔÉÏ£¬°üº¬µ±Ç°°æ±¾(µÈÓÚ)
Ïà¹ØÎĵµ£º
´°¿Úʼþ (Window Events)
½öÔÚ body ºÍ frameset ÔªËØÖÐÓÐЧ¡£
ÊôÐÔ Öµ ÃèÊö
onload ½Å±¾ µ±ÎĵµÔØÈëʱִÐнű¾
onunload ½Å±¾ µ±ÎĵµÐ¶ÔØÊ±Ö´Ðнű¾
±íµ¥ÔªËØÊ¼þ (Form Element Events)
½öÔÚ±íµ¥ÔªËØÖÐÓÐЧ¡£
ÊôÐÔ Öµ ÃèÊö
onpropertychange ½Å±¾ µ±Îı¾ÄÚÈݸıäʱִÐнű¾
onchange ½Å± ......
³ÌÐò¼¯Ãû
±£Áô
±£Áô
±¸×¢
´°¿Ú³ÌÐò¼¯1
×Ó³ÌÐòÃû
·µ»ØÖµÀàÐÍ
¹«¿ª
±¸×¢
_°´Å¥2_±»µ¥»÷
дµ½Îļþ (“c:\ecode.txt”, µ½×Ö½Ú¼¯ (³¬¼¶±à¼¿ò1.ÄÚÈÝ))
Ö´ÐÐ (4, “ecode_To_html.exe”, “c:\ecode.txt& ......
ÎļþÀàÐÍ <HTML></HTML> £¨·ÅÔÚµµ°¸µÄ¿ªÍ·Óë½á⣩
ÎļþÖ÷Ìâ <TITLE></TITLE> £¨±ØÐë·ÅÔÚ¡¸ÎÄÍ·¡¹Çø¿éÄÚ£©
ÎÄÍ· <HEAD></HEAD> £¨ÃèÊöÐÔ×ÊÁÏ£¬ÏñÊÇ¡¸Ö÷Ì⡹£©
ÎÄÌå <BODY></BODY> £¨Îļþ±¾Ì壩
½á¹¹ÐÔ¶¨Ò壨ÓÉä¯ÀÀÆ÷¿ØÖƵÄÏÔʾ·ç¸ñ£©
±êÌâ <H?></H?> ......
<map name="Map4" id="Map4">
<area shape="rect" mce_shape="rect" coords="659,31,697,45" mce_coords="659,31,697,45" href="product/?keys=289" mce_href="product/?keys=289" />
</map>
<map name=" ......
Zen Coding: Ò»ÖÖ¿ìËÙ±àдHTML/CSS´úÂëµÄ·½·¨
À´Ô´£ºhttp://www.javaeye.com/news/13149
Òë×Ô£ºSmashing Magazine
ÖÐÎÄ£ºZen Coding: Ò»ÖÖ¿ìËÙ±àдHTML/CSS´úÂëµÄ·½·¨
ÔÚ±¾ÎÄÖÐÎÒÃǽ«Õ¹Ê¾Ò»ÖÖеÄʹÓ÷ÂCSSÑ¡ÔñÆ÷µÄÓï·¨À´¿ìËÙ¿ª·¢HTMLºÍCSSµÄ·½·¨¡£ËüÓÉSergey Chikuyonok¿ª·¢¡£
ÄãÔÚдHTML´úÂë(°üÀ¨ËùÓбêÇ©¡¢ÊôÐÔ¡¢ ......