css 文字超过自动换行
时间: 2023-08-31 14:12:00 浏览: 102
在CSS中,可以使用以下属性来实现文字超过一行时自动换行:
- word-wrap: break-word; 这个属性可以在超过容器宽度时将单词进行换行。它会在单词内部的任意位置进行换行,以保证在容器内完整显示文本。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [css文字超出宽度自动换行](https://blog.csdn.net/TwoBE9876/article/details/122129927)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [css文字自动换行 及css文字相关属性](https://blog.csdn.net/weixin_56650035/article/details/119057515)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [css 文字自动换行](https://blog.csdn.net/wnk1997/article/details/129137824)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文