0

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">
         <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>

enter image description here

4

1 回答 1

0

<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 标签内。

于 2016-10-09T23:58:43.873 回答