一個簡單但煩人的錯誤。我可以使用CDN 這裏無法加載引導CSS是簡單的代碼引導CDN不加載
<html>
<head>
<title>Header template</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
</head>
<body>
<button class="btn btn-default">Hello World</button>
</body>
</html>
它沒有加載的標誌是什麼? (你有沒有用DOCTYPE聲明試過?)另外:你是如何查看這個頁面的?如果您使用的是本地'file://'URL,則可能會發現'// ...'協議相關的URL不起作用。 –
你的網站目前的協議是什麼? 'http','https'或者你是否用'file'在本地加載 –