How do I make an tag the size of it's parent
  • tag for larger clickable region?
  • 前端 未结 7 1393
    我在风中等你
    我在风中等你 2020-12-08 04:11

    I would like to do this so that the clickable region on the tag is size of the LI.

    My html looks like:

  • 相关标签:
    7条回答
    • 2020-12-08 05:06

      This will make the entire area clickable.

      li a { display: block; }
      
      0 讨论(0)
    提交回复
    热议问题