在字符串中加入換行符 '\n', 在給子字符的父級(jí)div 加上 white-space: pre即可<div>xxxxxx + '\n' + 'ssssssss'</div>? ?div {? ? width: 200px;? ? white-space: pre}