多余的字数用 “...代替” p{ width:900px; <!--显示宽度--> overflow: hidden;
text-overflow:ellipsis; white-space: nowrap;} 自动换行 1. <style type="text/css"> p{ width: 900px; } </style> 2.<p style="width:900px";>
“...代替” p{ width:900px; <!--显示宽度--> overflow: hidden; text-overflow: ellipsis; white-space: nowrap; course:hand; } 自动换行 1. <style type="text/css"> p{ width: 900px; } </style> 2.<p style="width:900px";>
CSS控制网页中每行显示的字数个数
最新推荐文章于 2024-07-15 15:05:27 发布