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