2017-08-27 54 views
1

引導W002 <head>缺少X-UA兼容<meta>標籤禁用舊IE兼容模式

這是我簡單的代碼:

<!DOCTYPE html> 
 
<html> 
 
<head> 
 
\t <meta charset='UTF-8'/> 
 
\t <meta http-equiv='X-UA-Compatible' content='IE=Edge'/> 
 
\t <meta name='viewport' content='width=device-width, initial-scale=1'/> 
 
\t <title>Hello</title> 
 
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/> 
 
</head> 
 
<body> 
 
\t <div class='container-fluid'> 
 
\t \t <div class='jumbotron'> 
 
\t \t \t <h1>Hello, world!</h1> 
 
\t \t \t <p>This is our first sample example that will be more awesome in the next chapters!</p> 
 
\t \t \t <a class='btn btn-primary btn-lg' href='#' role='button'> 
 
\t \t \t \t Bootstrap by Example, Chapter 1 
 
\t \t \t </a> 
 
\t \t </div> 
 
\t </div> 
 
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> 
 
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> 
 
</body> 
 
</html>

我通過Bootlint檢查和得到錯誤:

W002 <head> is missing X-UA-Compatible <meta> tag that disables old IE compatibility modes

嗯......但我的代碼有X-UA兼容<meta>標籤。爲什麼Bootlint會告訴我這件事?

+0

值得注意的是,該檢查將在下一個Bootstrap和相應的Bootlint版本中刪除。 – phk

回答