前言: span 有样式 ( white-space: pre-wrap;),但是文字可以自动换行,链接无法自动换行,导致页面出现了横向滚动条 解决方案: 链接标签设置属性 overflow-wrap: anywhere; 效果图如下: