how to align all my li on one line?

前端 未结 7 1301
灰色年华
灰色年华 2020-12-31 02:57

my CSS

ul{
overflow:hidden;
}
li{
display:inline-block;
}

my HTML

  • a
  • b
7条回答
  •  情书的邮戳
    2020-12-31 03:40

    Try putting white-space:nowrap; in your

      style

      edit: and use 'inline' rather than 'inline-block' as other have pointed out (and I forgot)

提交回复
热议问题