How to make the HTML link activated by clicking on the
  • ?
  • 后端 未结 14 1999
    没有蜡笔的小新
    没有蜡笔的小新 2020-12-07 16:18

    I have the following markup,

    相关标签:
    14条回答
    • 2020-12-07 17:07

      I found a easy solution: make the tag " li "be inside the tag " a ":

      <a href="#"><li>Something1</li></a>
      
      0 讨论(0)
    • 2020-12-07 17:09
      a {
        display: block;
        position: relative;
      }
      

      I think that is all you need.

      0 讨论(0)
    提交回复
    热议问题