这个名单一周前工作正常,但今天我打开了我的网站,它决定不再横向了。
.you ul, .dealer ul {
list-style-type: none;
overflow: hidden;
padding: 0;
margin: 0;
}
.you li, .dealer li {
margin: 0;
padding: 0;
float: left;
}
<h3>You:</h3>
<div class="you">
<ul>
<li ng-repeat="y in you">
<img class="thumbnail" ng-src="{{y.imageUrl}}">
</li>
</ul>
</div>
<h3>Dealer:</h3>
<div class="dealer">
<ul>
<li ng-repeat="d in dealer">
<img class="thumbnail" ng-src="{{d.imageUrl}}">
</li>
</ul>
</div>