自适应超出部分省略


/**自适应超出部分省略  操作级别最高级才行作用**/
.ui-content>.content_li >span{
display:block;
width: 95%;
text-align: left;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

/**自适应超出部分省略  操作级别最高级才行作用**/
<li  class="content_li">
<span>
<span class="black">
<s:property value='pr_name' />
</span>
<br>
<span class="black16">
<s:property value='pr_description' />
</span>
<br>
<span  class="red">
¥<s:property value='pr_unit_price' />
</span>
<span  class="hui16  yuanjia">
&nbsp; ¥<s:property value='pr_unit_price' />
</span>
<br>
<span  class="hui16">已售:<s:property value='sales' />件</span>
</span>
</li>

你可能感兴趣的:(自适应)