css特殊使用
1、css三角
line-height:0
font-size:0
可以省略
2、标签textarea
textarea{
resize:none;
outline:none;
}
3、图片底部默认空白缝隙问题
4、文本溢出解决
单行文本:
div{
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
多行文本:
div{
overflow:hidden;
text-overflow:ellipsis;
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
}
5、margin负值应用