通过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 ......
最近在弄公司的系统时遇到一个问题,有一个winform要调用网站的数据库,数据库中存的是经过eWebEditor处理过的文章,都带有html标签,当时想用正则表达式过滤掉,但是还是放弃了原因有三:1.我对正则表达式了解很少;2.虽说我可以现学正则表达式,但是实现起来也是很麻烦的;3.如果过滤掉的话文章的格式就没有了。于 ......
文件类型 <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=" ......