Firefox body margin bug?

后端 未结 3 1060
一向
一向 2020-12-11 07:00

I have this simple example:

  • Item
  • Item
  • Item
3条回答
  •  有刺的猬
    2020-12-11 07:22

    Instead of polluting your code with non-semantic and unnecessary empty

  • -s just add overflow: hidden to your

      HTML

      • Item
      • Item
      • Item
      • Item
      section

      CSS

      ul {
          list-style-type: none;
          overflow: hidden;
      }
      

      DEMO

提交回复
热议问题