2017-10-12 136 views
0

如何使一行中的字體超棒圖標與複選框和標籤對齊?將一行中的字體超棒圖標與標籤對齊

現在我有這個 enter image description here

而且我希望有[]state?

<div class="row"> 
 
    <div class="col-12"> 
 
    <div class="well"> 
 
     <div class="form-group"> 
 
     <div class="col-md-4"> 
 
      <label class="checkbox"> 
 
      <input type="checkbox"> state 
 
      </label> 
 
      <i class="fa fa-question-circle" 
 
      aria-hidden="true" 
 
      uib-popover="it is state" 
 
      popover-trigger="'mouseenter'"></i> 
 
     </div> 
 
     </div> 
 
    </div> 
 
    </div> 
 
</div>

回答

1

i標籤在標籤內。

<div class="row"> 
     <div class="col-12"> 
     <div class="well"> 
      <div class="form-group"> 
      <div class="col-md-4"> 
       <label class="checkbox"> 
       <input type="checkbox"> state 
       <i class="fa fa-question-circle" 
       aria-hidden="true" 
       uib-popover="it is state" 
       popover-trigger="'mouseenter'">a</i> 
       </label> 

      </div> 
      </div> 
     </div> 
     </div> 
    </div> 

或添加class='text-nowrap'

<div class="row"> 
    <div class="col-12"> 
    <div class="well"> 
     <div class="form-group"> 
     <div class="col-md-4 text-nowrap"> 
      <label class="checkbox"> 
      <input type="checkbox"> state 
      </label> 
      <i class="fa fa-question-circle" 
      aria-hidden="true" 
      uib-popover="it is state" 
      popover-trigger="'mouseenter'"></i> 
     </div> 
     </div> 
    </div> 
    </div> 
</div>