【问题标题】:Bootstraps list-group-item colours are not working引导列表组项颜色不起作用
【发布时间】:2016-10-10 08:09:59
【问题描述】:
这段代码昨天还在工作,现在突然停止工作,我没有对我的任何 html 页面(包括这个页面)进行任何更改。我正在使用烧瓶引导程序,但我的导航栏工作正常,并且出现“list-group-item”的边框在那里,只是“list-group-item-success/info/warning”中缺少的颜色。
<div class="col-md-8">
<ul class="list-group">
<a href="{{ url_for('listings.make_bst_listing') }}">
<li class="list-group-item list-group-item-success">
<h4><b>Buy Sell Trade</b> </h4>
<p>Post a listing for an item that you want to buy and/or sell and/or trade</p>
</li>
【问题讨论】:
标签:
css
twitter-bootstrap
flask-bootstrap
【解决方案1】:
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<!--This code was working yesterday and now it has suddenly stopped working, I haven't made any alterations to any of my html pages including this one. I am using flask bootstrap but my navbar is working fine and the border that comes up with "list-group-item" is there, it's just the colours that are missing from "list-group-item-success/info/warning".-->
<div class="col-md-8">
<ul class="list-group">
<li class="list-group-item list-group-item-danger">
<a href="{{ url_for('listings.make_bst_listing') }}">
<h4><b>Buy Sell Trade</b> </h4>
<p>Post a listing for an item that you want to buy and/or sell and/or trade</p>
</a>
</li>
</ul>
</div>
这对我有用...但是 html 已重新排列,以便 Anchor 标记位于 LI 标记内。锚点不能位于相关发布的 UL 标记内。