pre 标签的使用注意事项 .news-msg{ // padding: 5px; white-space: pre-wrap; word-wrap: break-word; font-family:'微软雅黑'; } <pre class="news-msg"></pre>