HTML代码都一样:股利行除了第一个
<div ng-repeat="characteristic in test.testChar" class="row" >
<div class="col-xs-9 rec">
<div class="rec2" ng-bind-html="translateCharacteristicLabel('test',test.testChar[$index + 1].cell_header) | to_trusted"></div>
</div>
</div>
CSS:
.row {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -moz-flex;
display: -ms-flexbox;
display: flex;
padding: 5px;
width: 100%;
}
.rec{
font-size: 16px !important;
text-transform: uppercase;
display: inline-block;
white-space: nowrap;
margin-left: 50%;
clear: left;
}
.rec2{
font-size: 16px !important;
text-transform: uppercase;
display: inline-block;
white-space: nowrap;
clear: left;
}
有了上面的代码,我能够创建低于设计:
正如你所看到的TYPE文本略低于其余的。我怎样才能让这一切都保持一致? (在所有在一行中)
您可以添加获取呈现实际的HTML? –