我使用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 –