ͨ¹ý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 µ±Ç°Ö¸¶¨°æ±¾ÒÔÉÏ£¬°üº¬µ±Ç°°æ±¾(µÈÓÚ)
Ïà¹ØÎĵµ£º
¾²Ì¬½á¹¹
£¼html£¾
£¼head£¾
£¼title£¾±êÌ⣼title£¾
£¼/head£¾
£¼body£¾..........ÎļþÄÚÈÝ..........
£¼/body£¾
£¼/html£¾
1.Îļþ±êÌâ
£¼title£¾..........£¼/title£¾
2.Îļþ¸üÐÂ--£¼meta£¾
¡¡¡¾1¡¿10Ãëºó×Ô¶¯¸üÐÂÒ»´Î
¡¡¡¡£¼meta http-equiv="refresh" content=10£¾
¡¡¡¾2¡¿10Ãëáá×Ô¶¯Á¬½áµ½ÁíÒ»Îļþ
¡¡¡¡ ......
ģ̬¶Ô»°¿òµã»÷Á´½Ó²»´ò¿ªÐ´°¿Ú
·½·¨1£º
ÔÚģ̬´°¿ÚÒ³ÃæÀï¼ÓÉÏ£º
<head>
<base target=_self >
</head>
''<base target=_self > ''·Åµ½<head>±êÇ©ÄÚ
·½· ......
StringBuilder sb = new StringBuilder();
Server.Execute("~/Default2.aspx", new StringWriter(sb));
File.WriteAllText(Server.MapPath("index.htm"), sb.ToString()); ......
//½ØÈ¡²¿·ÖÄÚÈÝ·½·¨
public static string strvalue(string value, int length)
{
string strValue = NoHTML(value);// È¥³ýHTML±ê¼Ç
&nb ......
ÔÚWEBÓ¦ÓÃÖÐ,Èç¹ûʹÓÃjsp×÷Ϊview²ãµÄÏÔʾģ°å,¶¼»á±»¿Õ¸ñ/¿Õ»»ÐÐÎÊÌâËùÀ§ÈÅ.
Õâ¸öÎÊÌâµ±ÄêÒ²À§ÈÅÁËÎұȽϳ¤µÄʱ¼ä.ÒòΪÔÚjspÄÚʹÓõÄEL±êÇ©ºÍÆäËû±êǩʱ,»á²úÉú´óÁ¿µÄ¿Õ¸ñºÍ»»Ðзû.ÀýÈç:
------- start ----------
<c:choose>
<c:when test="${fn:length(mainPageList)>1&}&q ......