我仍然有一些問題讓我的Twitter-Bootstrap頁面在IE8中正確顯示桌面視圖。我一直在這裏跟着幾個主題,但是投票建議只是對我沒有幫助。Twitter-Bootstrap respond.js不適用於IE8
使用建議的meta標籤
<meta http-equiv="X-UA-Compatible" content="IE=edge">
包括bootstrap.css的本地版本,html5shiv.js,respond.js,IE8響應文件,warning.js
這裏是我的頭節:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="SunTrust Equity Line Options">
<meta name="author" content="">
<link rel="shortcut icon" href="favicon.ico">
<title>SunTrust – Your Equity Line is Maturing. What are your options?</title>
<!-- Bootstrap core CSS -->
<link href="dist/css/bootstrap.css" rel="stylesheet">
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="dis/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="dist/js/html5shiv.js"></script>
<script src="dist/js/respond.js"></script>
<![endif]-->
而且它的結束:
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="dist/js/tooltip.js"></script>
<script src="dist/js/popover.js"></script>
<script>
$("a[rel=popover]")
.popover()
.click(function(e) {
e.preventDefault();
});
</script>
</body>
</html>
參閱此http包括jQuery的:/ /stackoverflow.com/questions/15127040/respond-js-not-working-in-ie-8它會幫助你 – 2dar
@ 2dar該答案似乎不適用於此代碼。 – Blazemonger
我回顧了上面建議的stackoverflow線程。這裏列出的項目似乎都沒有幫助。 –