div内的垂直对齐列表项

问题描述 投票:0回答:1

我想垂直对齐div中的列表项,这就是我编写的代码:

<div>
 <div class="span4">
  <img style="float: left; width: 80px;" src="http://www.zalfaniyamen.com/wp-content/uploads/2020/02/200px-Dhofar_Club.png" />
 </div>
 <div>
  <ul class="list-group" style="margin-bottom: 0 !important;">
    <li class="list-group-item active" style="margin-left: 120px !important; padding-top: 0 !important; padding-bottom: 0 !important; font-size: 20px; font-weight: 600; width: 60%;">
    Win super cup of sultun
    </li>
  </ul>
 </div>
</div>
<div>
<div style="clear: both;"></div>
</div>
html css twitter-bootstrap vertical-alignment
1个回答
0
投票

您能否检查以下代码,希望它能解决您的查询。

© www.soinside.com 2019 - 2024. All rights reserved.