1
要在IE 10,9和8中运行良好,我应该怎么做?对于IE,我应该在<head>中包含哪些内容?
我在这里和那里搜索,然后我像下面输入。 我想确保下面的代码可以使用。 我没有使用任何引导程序或任何框架。
我用Modenizr。
这是头部的代码。
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html lang="en" class="no-js">
<!--some meta tags-->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if lte IE 8]><script src="js/libs/selectivizr.js"></script><![endif]-->
<!--link my style sheet here -->
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto" />
<![endif]-->
<!--my other link and scripts here -->
在此先感谢。
没有办法回答这个问题。一个基本的HTML页面与最小的CSS并不需要任何特殊的“工作”在IE浏览器。 –
'<! - [if lt IE 9]> '这可以真正帮助使用语义html – claudios