Radio-button 文字超长自动换行
时间: 2023-08-14 20:12:20 浏览: 247
回答: 如果你想让Radio-button的文字超长时自动换行,你可以使用CSS的`word-wrap`属性来实现。在你的代码中,你可以添加以下样式来实现自动换行:
```css
.el-radio-button__inner, .el-radio-group {
word-wrap: break-word;
}
```
这样,当文字超过Radio-button的宽度时,它会自动换行并适应容器的大小。\[1\]希望这个解决方案对你有帮助。
#### 引用[.reference_title]
- *1* [el-radio-group 换行重叠jie](https://blog.csdn.net/weixin_46136687/article/details/130236502)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [Element不能自动换行,内容依然超出,直到遇见空格自动换行](https://blog.csdn.net/xi9972/article/details/81355099)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文