您的位置:首页 > 其它

移动web开会发一些问题

2015-12-15 23:25 239 查看
一像素边框

li{

cursor:pointer;

position:relative;

}

li+li:before{

  position:absolute;

top:-1px;

left:0px;

content:' ';

width:100%;

height:1px;

border-top:1px solid#ddd;

-webkit-transform:scaleY(0.5);

}

单行文本溢出

. inaline{

            overflow:hidden;

           white-space:nowrap;

         text-overflow:ellipsis;

}

多行文本溢出

.intwoline{

    display:-webkit-box !important;

     overflow:hidden;

text-overflow:ellipsis;

    word-break:break-all;

-webkit-box-orient:vertical;

-webkit-line-clamp:4;

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: