css让元素的内容不换行,宽度由内容撑开 走投无路的程序猿 2022-08-12 101 阅读1分钟 .main { width: 100%; overflow-x: scroll; white-space: nowrap; /* 内容超出不换行 */ }