ͨ¹ý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 ......
Ê×ÏÈдһ¸öÒ³Ãæ£¬ÉÏÃæÒª·ÅÒ»¸öButton
<html>
<head>
<title></title>
</head>
<body>
<input id="Button1" type="button" value="button" />
</body>
</html>
½«Æä±£´ ......
ÀýÈç´Ó1.htmlÌø×ªµ½2.html£º
ÔÚ1.htmlÖУº
¡¡¡¡<form name="loginForm" action="2.htm?pageid=1&str='s'" method="post">
µ±Ò³ÃæÌá½»Ìø×ªµ½2.htmlÖУº
<script type="text/javascript">
<!--
var str = location.search;
//-->
&l ......
×î½ü±¾À´ÊÇҪȥÄÇǶÈëʽ¿ÎµÄ£¬µ«ÊÇÄǿξ¹È»ËµÈËÊýÌ«ÉÙ£¬¿ª²»ÁË£¬¿¿¡£ËùÒÔÕâÁ½ÌìÖ»ÄÜ×Ô¼ºÑо¿µã¶«Î÷ÁË¡£¼ÇµÃ×Ô¼ºÒÔǰ¾ÍÏ붯ÊÖдһ¸ö¹ØÓÚdomµÄ½âÎöÒýÇæ£¬Ö»¹Ö×Ô¼ºÌ«ÀÁ£¬Ò»Ö±Ã»¶¯±Ê¡£×î½üÔÚ¼ÒҲûʲôÊÂ×ö£¬¾Í×Ô¼º¶¯ÊÖдһ¸ö£¬»¨ÁËÒ»Ììʱ¼äдµÄ²î²»¶àÁË£¬ÕýºÃ¶ÍÁ¶×Ô¼ºµÄc++ˮƽ°É¡£
&nb ......