ͨ¹ý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 µ±Ç°Ö¸¶¨°æ±¾ÒÔÉÏ£¬°üº¬µ±Ç°°æ±¾(µÈÓÚ)
Ïà¹ØÎĵµ£º
ÏÈÀ´¿´¶Î´úÂ룺
document.domain = 'ray.com';
Õâ¶Î´úÂëµ½µ×ÊÇʲôÒâË¼ÄØ£¿
Ê×ÏÈ£¬ÎÒÃÇÀ´¿´ÏÂHTML DOM ¹ØÓÚÕâ¸öµÄ˵Ã÷£º
domain of type DOMString, readonlyThe domain name of the server that served the document, or null if the server cannot be identified by a domain name.
Õâ¶Î»°µÄÒâ˼ÊÇÕâ¸öÖµÊÇDO ......
CSDN²©¿Í£ºhttp://writeblog.csdn.net/PostList.aspx
·½·¨Ò»£ºÓüÇʱ¾´ò¿ªindex.htm£¬Ìæ»»£º10pt ---> 12pt£¬±£´æºó£¬ÓÃIE´ò¿ª´Ëhtm£¬ctrl+a--ctrl+c£¬Õ³Ìùµ½²©¿Í¾ÍÐÐÁË£¡
·½·¨¶þ£ºÔÚcsdn·¢±íÎÄÕÂʱ£¬Ñ¡Ôñ¡¾Í¼Ïñ¡¿ºóÃæµÄ¡¾HTML¡¿°´Å¥£¬ÔÙ°Ñindex.htmÔ´ÂëÕ³ÌùÉÏÈ¥£¬Ê²Ã´Ò²²»ÓøĶ¯£¡ ......
ģ̬¶Ô»°¿òµã»÷Á´½Ó²»´ò¿ªÐ´°¿Ú
·½·¨1£º
ÔÚģ̬´°¿ÚÒ³ÃæÀï¼ÓÉÏ£º
<head>
<base target=_self >
</head>
''<base target=_self > ''·Åµ½<head>±êÇ©ÄÚ
·½· ......
ÓÐÊ±Ò³ÃæÐèÒª»ñµÃÓû§ä¯ÀÀÆ÷µÄ¸ß¶È²ÅÄÜÈ·¶¨ÄÚÈÝÏÔʾÔÚÄÄÀ´úÂë
<div style="position:absolute; left:0; top:expression(document.body.clientHeight/2-document.body.clientHeight/4)">
</div>
ÖУ¬expression(document.body.clientHeight/2)¼´Îª»ñµÃä¯ÀÀÆ÷¸ß¶ÈÔÙ³ýÒÔ2 ......