Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.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
Css ie8使标题消失_Css_Internet Explorer 8 - Fatal编程技术网

Css ie8使标题消失

Css ie8使标题消失,css,internet-explorer-8,Css,Internet Explorer 8,我的网站在

我的网站在
    header{
        width: 100%;
        height: 140px;
        background: #FFFFFF;
        margin: 0px;
        float: left;
    }

    h1{
    color: #FFFFFF;
      font-family: Garamond,Baskerville,"Baskerville Old Face","Hoefler                Text","Times New Roman",serif
    }


    .headerInner{
        width: 96%;
        height: 88%;
        background: #00AA4F;
        margin: 10px 2%;
        text-align: center;
    }

IE8和更早的版本不支持HTML5,因此它不知道头元素的存在,因此它不呈现它。您可以使用div而不是header元素,也可以在此处添加此脚本,从而添加对IE8的HTML5支持:。但对于IE7及以上版本,我认为这对你没有帮助。我想你需要支持IE7和更高版本,但不要使用HTML5元素。

Doi当然,目前正在拍我的头。这是我第一个完整的HTML5网站,我被抓到了。谢谢你,我的朋友