Can you have
  • s without them being under a
      or
        ?
  • 前端 未结 5 800
    猫巷女王i
    猫巷女王i 2021-01-12 05:49

    I have a navigation that I am using a list for. I have it in a

      , but that is messing up my UI because it has weird automatic margins. I tried without
    5条回答
    •  死守一世寂寞
      2021-01-12 06:41

      The UL and LI combination are one of the most liberally interpreted elements in all of HTML. Meaning they tend to look wildly different depending on which browser you use. As others suggest, reset the margins and paddings to 0. But you should be doing this anyway in a reset stylesheet, so that you catch the other elements that display differently across browsers.

    提交回复
    热议问题