Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
html前缀命名空间冲突_Html - Fatal编程技术网

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;
    }