我想在屏幕截图中对齐文本。第一个跨度溢出,应显示椭圆,但第二个清除全部应始终显示在最后一个跨度元素的右侧。关于将两个跨度并排排列,只有一个文本溢出
<div class="col-sm-12 col-md-12 col-lg-12 filter-display-bar"
\t \t \t \t \t title="{{vm.filterSelectionsTitle}}"
\t \t \t \t >
\t \t \t \t \t <span>
\t \t \t \t \t \t {{vm.filterSelections}}
</span>
\t \t \t \t \t <span class="clear-all" title="Clear All"
ng-show="vm.listOptionResorts.length !== 0 || vm.listOptionStatus.length !== 0 || vm.listOptionArrivalDate.length !== 0 || (vm.startTime !== undefined && vm.startTime !== '') || (vm.endTime !== undefined && vm.endTime !== '')"
ng-click="vm.clearEverything()">
Clear All
\t \t \t \t \t </span>
\t \t \t \t </div>
div.filter-display-bar{
width: 90%;
.heightFifty;
margin: 0 auto;
background-color: #F2F2F2;
font-family: Avenir-Book,Helvetica,Arial;
font-style: Book;
font-size: 14px;
color: #000;
line-height: 50px;
padding-bottom: 10px;
padding-left: 20px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
span.clear-all{
color: #40A8E2;
cursor: pointer;
width: 84px;
background-color: #F2F2F2;
position: fixed;
right: 104px;
}
}
像这样的事情实际上, -
我不希望它总是在正确的0,但总是在第一跨度的下一侧。 – Smitha
@Smitha更新了我的回答 –