我的a标签中包含两个s,一个span,怎样让a标签的内容长度只有我标的那么长,内容长度不会到
末尾的span和s哪去呢?
<a href="#" class="item">
<s class="play_icon cuicons"></s>
<em>如何使用更换档位</em>
<span class="item-tail">
<span class="recent_study"></span>
<s class="right_icon cuicons"></s>
</span>
</a>
.item{
position:relative;
padding-right:300px;
height:24px;
line-height:24px;
overflow:hidden;
text-overflow:ellipsis; /* 可选 */
}
.item-tail{
position:absolute;
top:0;
right:0;
width:300px;
height:24px;
overflow:hidden;
}
/*...*/
时时分享云计算技术内容,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。