html前缀命名空间冲突
我目前有以下html前缀命名空间冲突,html,Html,我目前有以下html前缀名称空间 <html lang="en" dir="ltr" prefix="content: http://purl.org/rss/1.0/modules/content/ dc: http://purl.org/dc/terms/ foaf: http://xmlns.com/foaf/0.1/ og: http://ogp.me/ns# rdfs: http://www.w3.org/2000/01/rdf-schema# schema: http://sc
html前缀名称空间
<html lang="en" dir="ltr" prefix="content: http://purl.org/rss/1.0/modules/content/
dc: http://purl.org/dc/terms/ foaf: http://xmlns.com/foaf/0.1/
og: http://ogp.me/ns# rdfs: http://www.w3.org/2000/01/rdf-schema#
schema: http://schema.org/ sioc: http://rdfs.org/sioc/ns#
sioct: http://rdfs.org/sioc/types# skos: http://www.w3.org/2004/02/skos/core#
xsd: http://www.w3.org/2001/XMLSchema# ">
我在读一些东西,偶然发现:
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
以下是我的问题:
1./将其添加到我的html网页是否会干扰/碰撞我当前的前缀命名空间
2./对于表示if(gte IE 9)
的情况,为什么在html声明和
您只能有一个
标记,但可以将第一个示例中的属性添加到第二个示例中的
标记中。你想达到什么目标
第二个示例包含条件注释。只有旧版本的Internet Explorer才支持它们。其他浏览器会将它们视为普通的HTML注释-也就是说,它们会忽略它们。示例的最后一行关闭HTML标记之前的注释,以便所有非IE浏览器仍能看到
标记。如果它被写成
<!--[if (gte IE 9)|!(IE)]><html lang="en"><![endif]-->
这将使除IE7用户外的所有人的页面背景都变成白色,而IE7用户的页面背景则为红色
实际上,这些类型的解决方案现在已经不常用了,除非您迫切需要支持微软自己不再支持的IE版本
body {
background-color: white;
}
.ie7 body {
background-color: red;
}