html - 在 CSS 中包含 div 宽度边界内的文本
问题描述
如何将文本包含在我的 div 的宽度内并换行到我的 CSS 中的新行?谢谢!!
.render-message {
margin-top: 8px;
height: 90px;
margin-bottom: 8px;
}
解决方案
.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>
推荐阅读
- assimp - 将 assimp 骨骼数据与其他顶点数据相结合
- c++ - 在应用程序中集成共享对象,ldd 和 readelf 显示不同的输出
- discord.js - 我正在尝试从人员列表中随机选择 5 个选项
- docker - 尝试在 Docker 容器中安装 Python 时出错
- apexcharts - 删除面积图下的空白
- c# - 实体框架无法在 C# 后端通过其 ID 提取特定记录
- vb.net - 我们可以使用在 Visual Studio 2019 中开发的 Visual Studio 2015 构建项目吗
- sql - SQL 获取最后一次数字设置为 1
- java - Android 和 Firebase 将 EditText 与实时数据库子值进行比较
- php - 可以搜索特定的标题文本并且只显示描述xml吗?