我使用Bootstrap jumbotron作爲我的網頁頭,我有我自己的layout.css,但並不是我所有的.jumbotron規則都在工作。當我嘗試設置margin-bottom: 0px;
時,它並沒有出現在我的瀏覽器開發工具中,甚至沒有出現。有誰知道如何解決這一問題?CSS沒有顯示所有規則
的index.html - 頭和報頭與超大屏幕類:
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link href="{{ url_for('static', filename='css/layout.css') }}" rel="stylesheet">
</head>
<header class="jumbotron container-fluid">
<h1> Catalog App </h1>
<button type="button" class="btn btn-xs btn-default btn-login" onclick="location.href='/login/'">Login</button>
</header>
layout.css中 - .jumbotron:
.jumbotron {
background-color: #195e8c;
margin-bottom: 0px;
padding-top: 2px;
padding-bottom: 2px;
}
開發工具 - 未示出下邊距:
我確保一切都保存並重新加載服務器。它在一個簡單的Flask python服務器上運行,如果這樣的話。
嘗試把你的CSS文件引導CSS – BigMonkey89WithaLeg
可以重現它爲我們以後? –
@ BigMonkey89WithaLeg它們已經在引導後鏈接CSS –