<div class='container'>
  <div class='item'>Short
回个话
不开车
vuvu个
老夫IGIGi
姑姑个
content</div>
</div>
  </body>
</html>可以使用CSS的'word-wrap'属性来实现文字在指定字符数时换行。将以下代码添加到`<style>`标签中:
<pre><code class="language-css">.item {
  word-wrap: break-word;
}
</code></pre>
<p>这样当文字达到5个字符时,会自动换行。</p>

原文地址: http://www.cveoy.top/t/topic/p5M7 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录