-2
尽管遵循了其他问题中的说明,但似乎无法覆盖Bootstrap的CSS。覆盖Bootstrap的CSS
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="css/styles.css">
...
<!-- GRID SECTION -->
<div class="container">
<div class="row">
<div class="col-md-2">
</div>
<div class="col-md-8">
<h1 id="title">TITLE</h1>
</div>
<div class="col-md-2">
</div>
</div>
</div>
的CSS它这样的:
@font-face {
font-family: hnl;
src: url('fonts/hnl.otf');
}
body {
font-family: hnl;
}
#title {
font-family: hnl;
text-align: center;
}
然而,字体不改变,文本不对齐。 如何覆盖Bootstrap的CSS?
这是一个新手的错误与编辑工作,我不得不重新指定文件路径,但它似乎是现在的工作! – punddalinni