CSS

[CSS]末尾を三点リーダー(...)

更新日:

一行

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

複数行

display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;

-CSS

Copyright© WXY , 2024 All Rights Reserved Powered by STINGER.