认为这些工作正常,但只是检查我在 ie9 中得到一个空白页。如果我使用开发者工具切换到 ie 8 或 7 同样的结果。也许我现在太累了,但我没有看到下面的任何问题导致问题。
顶部为 html 添加了一个类,即 8 或更低,因此我可以在我的 css 中删除任何使用 google 字体的内容。然后底部为任何不是 IE 或 IE 9 或更高版本的东西加载谷歌字体。
这有什么问题?
<!DOCTYPE html>
<!--[if lte IE 8 ]> <html class="ie8" lang="en-US"> <![endif]-->
<!--[if !IE]><!--> <html lang="en-US"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>test</title>
<meta name="description" content="test">
<link rel="stylesheet" href="/css/base.css" type="text/css">
<link rel="stylesheet" href="/css/styles.css" type="text/css">
<!--[if gt IE 8]>
<link href="http://fonts.googleapis.com/css?family=Kite+One|Open+Sans:400italic,400,700" rel="stylesheet" type="text/css">
<![endif]-->
<!--[if !IE]><!-->
<link href="http://fonts.googleapis.com/css?family=Kite+One|Open+Sans:400italic,400,700" rel="stylesheet" type="text/css">
<!--<![endif]-->
</head>