它在chrome中工作,但在firefox中显示不好。

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">


<div class="container-fluid">
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
    <div class="col-md-3 col-sm-3 col-xs-6"><strong>Name</strong></div>
    <div class="col-md-9 col-sm-9 col-xs-6">test</div>
    <div class="col-md-3 col-sm-3 col-xs-6"><strong>Sex</strong></div>
    <div class="col-md-9 col-sm-9 col-xs-6">Male</div>
    <div class="col-md-3 col-sm-3 col-xs-6"><strong>Age</strong></div>
    <div class="col-md-9 col-sm-9 col-xs-6">16</div>

</div>
</div>


  </div>


html - 一行中有许多col-md *,对吗?-LMLPHP
火狐47(MacOSX):
html - 一行中有许多col-md *,对吗?-LMLPHP

最佳答案

你使用label标记对吗?
如果是,则添加此css

label{margin-bottom:0;
}

关于html - 一行中有许多col-md *,对吗?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/37918584/

10-11 05:25