• display: flex ul 元素设置为 flex 布局,以便进行横向排列。
  • overflow-x: auto 将横向滚动条添加到 ul 元素中。
  • white-space: nowrap 禁止文本换行。
  • display: inline-block li 元素设置为内联块,以便在一行中进行横向排列。
  • 请注意,您可能需要根据您的需求调整其他样式,例如宽度和高度。

  • 程序猿的生活
    • 325
  •