通过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 当前指定版本以上,包含当前版本(等于)
相关文档:
前台 <form id="form1" runat="server" enctype="multipart/form-data">
<input type="flie" id="xxx">
</form>
后台通过 HttpPostedFile f = Request.Files["xxx"]
接收就可以了 ......
有时页面需要获得用户浏览器的高度才能确定内容显示在哪里,代码
<div style="position:absolute; left:0; top:expression(document.body.clientHeight/2-document.body.clientHeight/4)">
</div>
中,expression(document.body.clientHeight/2)即为获得浏览器高度再除以2 ......
文件类型 <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=" ......