HTML 5 Boilerplate - IE的问题? [英] HTML 5 Boilerplate - Issues with IE?

查看:142
本文介绍了HTML 5 Boilerplate - IE的问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常用零开始编写所有网站项目,但我决定在检查源代码等之后为新项目使用样板。...



设置是伟大的代码是坚实的,但我有与IE的问题,我可能只是忽略,但我似乎无法解决问题。基本上,网站在每个浏览器和手机等显示完美,但不会显示任何东西IE ...唯一的东西,IE显示的是身体背景??



基本上因为我不能发布的网站,因为客户端(他们是相当高的简介,我来自)我只是检查,如果这是一个常见的问题?是否有快速修复?



我知道我没有提供多少信息,我只是想看看这是一个常见的修补程序,我们必须查看...



感谢您的帮助!



 <!doctype html> 
<! - [if lt IE 7]> < html class =no-js ie6 oldielang =en> <![endif] - >
<! - [if IE 7]> < html class =no-js ie7 oldielang =en> <![endif] - >
<! - [if IE 8]> < html class =no-js ie8 oldielang =en> <![endif] - >
<! - [if gt IE 8]><! - > < html class =no-jslang =en> <! - <![endif] - >
< head>
< meta charset =utf-8>
< meta http-equiv =X-UA-Compatiblecontent =IE = edge,chrome = 1>

< title>< / title>
< meta name =descriptioncontent =>
< meta name =authorcontent =>

< meta name =viewportcontent =width = device-width,initial-scale = 1>

< link rel =stylesheethref =css / style.css>

< script src =js / libs / modernizr-2.0.min.js>< / script>
< script src =js / libs / respond.min.js>< / script>

< script type =text / javascriptsrc =http://use.typekit.com/lyx5qmg.js>< / script>
< script type =text / javascript> try {Typekit.load();} catch(e){}< / script>
< / head>


解决方案

在google的网站: href =https://code.google.com/p/html5shiv/issues/detail?id=24# =nofollow> https://code.google.com/p/html5shiv/issues/detail? id = 24#它说的问题是与url。名为Richard Bland的绅士表示更正:


 ! -  [if lt IE 9] ; 
< script src = **http://**html5shiv.googlecode.com/svn/trunk/html5.js>< / script>
<![endif] - >


请注意,我引用该网站的绅士。 / p>

I usually code all website projects by scratch but I decided to use boilerplate for a new project after checking out the source code etc...

The set-up is great and the code is solid but I am having problems with IE that I may just be overlooking but I can't seem to solve the issue. Basically, the site displays perfect on every browser and phones etc but will not display anything for IE... The only thing that IE displays is the body background??

Basically because I can't post the website because of the client (they are quite high profile where I am from) I am just checking if this is a common problem?? Is there a quick fix??

I know I'm not giving much information I'm just looking to see if this is a common fix or if it's something I'll have to look into...

Thanks for any help!

EDIT - Here is my doc head:

<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <title></title>
    <meta name="description" content="">
    <meta name="author" content="">

    <meta name="viewport" content="width=device-width,initial-scale=1">

    <link rel="stylesheet" href="css/style.css">

    <script src="js/libs/modernizr-2.0.min.js"></script>
    <script src="js/libs/respond.min.js"></script>

    <script type="text/javascript" src="http://use.typekit.com/lyx5qmg.js"></script>
    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
</head>

解决方案

On google's site at: (dead link) https://code.google.com/p/html5shiv/issues/detail?id=24# it says the problem is with the url. A gentleman named Richard Bland indicated a correction:

!--[if lt IE 9]>
<script src=**"http://**html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

Please note, I am quoting the gentleman from that website.

这篇关于HTML 5 Boilerplate - IE的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆