我试图让这提醒有水平的5卡作为它可以容纳电网在线列表。 问题是,如果我漂浮列表项至左,文本中心不再起作用,并在列表本身是左对齐。
这是我在装入用ajax列表项卡.load()
<div class="my-card" style="width: 268px;">
<a href="" class="card-text">
<img class="card-img-top" src="http://placehold.it/268x280" alt="">
<div class="card-body py-3 px-0">
<div>Dolor labore duis eu eu qui officia aliqua minim.</div>
</div>
</a>
</div>
<div class="container-fluid">
<div class="row">
<div class="d-flex text-center">
<ul class="list-inline">
<li class="list-inline-item float-left"></li>
<li class="list-inline-item float-left"></li>
<li class="list-inline-item float-left"></li>
<li class="list-inline-item float-left"></li>
<li class="list-inline-item float-left"></li>
<li class="list-inline-item float-left"></li>
<li class="list-inline-item float-left"></li>
<li class="list-inline-item float-left"></li>
<li class="list-inline-item float-left"></li>
<li class="list-inline-item float-left"></li>
<li class="list-inline-item float-left"></li>
<li class="list-inline-item float-left"></li>
<li class="list-inline-item float-left"></li>
<li class="list-inline-item float-left"></li>
</ul>
</div>
</div>
</div>
这是相同的,但最后的项目不向左浮动,但名单集中:
<div class="container-fluid">
<div class="row">
<div class="d-flex">
<ul class="list-inline text-center pl-3 justify-content-start">
<li class="list-inline-item"></li>
<li class="list-inline-item"></li>
<li class="list-inline-item"></li>
<li class="list-inline-item"></li>
<li class="list-inline-item"></li>
<li class="list-inline-item"></li>
<li class="list-inline-item"></li>
<li class="list-inline-item"></li>
<li class="list-inline-item"></li>
<li class="list-inline-item"></li>
<li class="list-inline-item"></li>
<li class="list-inline-item"></li>
<li class="list-inline-item"></li>
<li class="list-inline-item"></li>
</ul>
</div>
</div>
</div>
所以,问题是如何中心内d-flex和浮动列表项列表向左? 任何帮助深表感谢。