引用xml命名空间问题
2016-04-27 21:33
309 查看
红色部分是兼容性需要,最开始我还以为是注释,坑了半天。。。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DEMO</title>
<!--[if lt IE 9]>
<?import namespace="v" implementation="#default#VML" ?>
<![endif]-->
</head>
<body >
</body>
</html>
条件注释判断浏览器版本
<!--[if lt IE 9]>IE9以及IE9以下版本可识别 <![endif]-->
<!--[if !IE]><!--> 除IE外都可识别 <!--<![endif]-->
<!--[if IE]> 所有的IE可识别 <![endif]-->
<!--[if IE 6]> 仅IE6可识别 <![endif]-->
<!--[if lt IE 6]> IE6以及IE6以下版本可识别 <![endif]-->
<!--[if gte IE 6]> IE6以及IE6以上版本可识别 <![endif]-->
<!--[if IE 7]> 仅IE7可识别 <![endif]-->
<!--[if lt IE 7]> IE7以及IE7以下版本可识别 <![endif]-->
<!--[if gte IE 7]> IE7以及IE7以上版本可识别 <![endif]-->
<!--[if IE 8]> 仅IE8可识别 <![endif]-->
<!--[if IE 9]> 仅IE9可识别 <![endif]-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DEMO</title>
<!--[if lt IE 9]>
<?import namespace="v" implementation="#default#VML" ?>
<![endif]-->
</head>
<body >
</body>
</html>
条件注释判断浏览器版本
<!--[if lt IE 9]>IE9以及IE9以下版本可识别 <![endif]-->
<!--[if !IE]><!--> 除IE外都可识别 <!--<![endif]-->
<!--[if IE]> 所有的IE可识别 <![endif]-->
<!--[if IE 6]> 仅IE6可识别 <![endif]-->
<!--[if lt IE 6]> IE6以及IE6以下版本可识别 <![endif]-->
<!--[if gte IE 6]> IE6以及IE6以上版本可识别 <![endif]-->
<!--[if IE 7]> 仅IE7可识别 <![endif]-->
<!--[if lt IE 7]> IE7以及IE7以下版本可识别 <![endif]-->
<!--[if gte IE 7]> IE7以及IE7以上版本可识别 <![endif]-->
<!--[if IE 8]> 仅IE8可识别 <![endif]-->
<!--[if IE 9]> 仅IE9可识别 <![endif]-->
相关文章推荐
- 解析带有命名空间xmlns的xml文件 (XML解析中的namespace初探)
- dom4j为生成XML的文件添加xmlns属性
- 计步器的preference.xml和project properties学习
- Android xmlns 的作用及其自定义
- 自定义xml属性attr
- Android - Manifest 文件 详解
- 关于XML文档的xmlns、xmlns:xsi和xsi:schemaLocation
- 引用sina微博"加关注"按钮wb.js在ie6/7/8下报错
- Android之xml文档中的命名空间
- Android添加垂直滚动ScrollView
- Xmlns与targetNamespace 的区别
- html中的xmlns是什么意思?
- [Spring] Spring配置文件头部xmlns配置
- XML文档中的xmlns、xmlns:xsi和xsi:schemaLocation理解
- 理解spring配置文件的头部信息(xmlns,xsi)
- Java使用dom4j生成xml的时候 第二行空行 并xmlns无效问题
- xpath解析xmlns字段的xml文件
- 有关xml中的xmlns
- c#之WPF基础知识点(一)
- 关于XML文档的xmlns、xmlns:xsi和xsi:schemaLocation