标签:art play idt null content style typename margin 面积
html代码如下:
<ul class="basic_ul"> <li><span class="key">车牌号</span><span> : </span><span class="value">{{data.ro.carNumber||""}}</span></li> <li><span class="key">车型</span><span> : </span><span class="value" style="width:auto;">{{((data.ro.manufacturersName||"") + ‘ ‘ + (data.ro.carTypeName||""))}}</span> <span :style="{ backgroundColor: (data.ro.color||‘‘) }" class="car-color" v-if="data.ro.color == null || data.ro.color == ‘#ffffff‘"></span> <span :style="{ backgroundColor: (data.ro.color||‘‘) }" class="car-color" v-else-if="data.ro.color != null && data.ro.color != ‘#ffffff‘"></span> </li> <li><span class="key">工单号</span><span> : </span><span class="value">{{data.ro.roNumber||""}}</span></li> <li><span class="key">服务顾问</span><span> : </span><span class="value">{{data.ro.saName||""}}</span></li> <li><span class="key">当前工序</span><span> : </span><span class="value">{{data.ro.processName||""}}</span></li> <li><span class="key">交车时间</span><span> : </span><span class="value">{{data.ro.outDate != undefined ? new Date(data.ro.outDate).JDateFormat("yyyy-MM-dd HH:mm"): ""}}</span></li> <li><span class="key">进厂时间</span><span> : </span><span class="value">{{data.ro.inDate != undefined ? new Date(data.ro.inDate).JDateFormat("yyyy-MM-dd HH:mm"): ""}}</span></li> <li><span class="key">面积合计</span><span> : </span><span class="value">{{data.ro.area||""}}</span></li> </ul>
css代码如下:
.justify{display:block;min-width:72px;margin-right:5px;text-align:justify;text-justify:distribute-all-lines;text-align-last:justify;-moz-text-align-last:justify;-webkit-text-align-last:justify;padding:1px 0px;} @media screen and (-webkit-min-device-pixel-ratio:0){/* chrome*/ .justify:after{ content:"."; display: inline-block; width:100%; overflow:hidden; height:0; } }
注意:
在html代码里面,两端对齐的文字必须有空格,如果想加一个冒号的话,就直接在后面加入一个span就行,不要直接使用after伪类,由于结构会比较复杂,文字的容器必须是inline-block
标签:art play idt null content style typename margin 面积
原文地址:http://www.cnblogs.com/windseek/p/6699618.html