.
3ss.cn

html怎么设置溢出躲藏

html设置溢出隐藏的方法:1、单行设置溢出隐藏,代码为【overflow: hidden】;2、多行设置溢出隐藏,代码为【display: -webkit-box】。

本教程操作环境:windows7系统、html5版,DELL G3电脑。

html设置溢出隐藏的方法:

单行:

overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;

多行:

display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
赞(0)
未经允许不得转载:互联学术 » html怎么设置溢出躲藏

评论 抢沙发