2015-02-12 28 views
1

我的网站只是“为什么这个文本很小?”。屏幕上。它适用于应用于它的css样式,但不在IE 8中。IE 8特定样式表将无法使用条件注释

的HTML是:

<!--[if IE 8 ]> 
    <p>Only IE 8 will see this</p> 
<![endif]--> 

<div class="font4">Why is this text small?</div> 

,并在顶部的风格标签内 “font4” 的造型,就是:

.font4 { 
    margin-top: 4%; 
    margin-bottom:3%; 
    color: #030; 
    font-family: "Times New Roman", Times; 
    font-size: 6vh; 
    text-align:center; 
} 

但是,如果我在IE 8浏览它,它会显示得小,像这样:

screenshot

所以我把这个网站的头:

<!--[if IE 8]> 
    <link rel="stylesheet" type="text/css" href="http://testsite24.netai.net/public/ie8.css"> 
<![endif]--> 

和ie8.css已正确关联。对于ie8.css的代码是:

@charset "utf-8"; 
/* CSS Document */ 

.font4 { 
    margin-top: 4%; 
    margin-bottom:3%; 
    color: #030; 
    font-family: "Times New Roman", Times; 
    font-size: 10vh; 
    text-align:center; 
} 

但它为什么不回应font-size: 10vh;

,您可以在这里查看我的网站:http://testsite24.netai.net/public/demo.html

谢谢!

回答