首页 > 解决方案 > 在 CSS 中包含 div 宽度边界内的文本

问题描述

如何将文本包含在我的 div 的宽度内并换行到我的 CSS 中的新行?谢谢!!

.render-message {
    margin-top: 8px;
    height: 90px;
    margin-bottom: 8px;
}

标签: htmlcss

解决方案


.render-message {
  margin-top: 8px;
  height: 90px;
  margin-bottom: 8px;
  border: 1px solid red;
}
<div class="render-message">

  Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry s standard dummy text ever since the when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived
  not only five centuries, but also the leap into electronic typesetting, remaining essentially

</div>


推荐阅读