How to increase the clickable area of a tag button?

前端 未结 11 1418
悲哀的现实
悲哀的现实 2021-01-29 22:04

I have learnt from this post that always use tags or

11条回答
  •  囚心锁ツ
    2021-01-29 22:21

    use position css property and set top,right,bottom and left to Zero.. set z-index if needed in my case in i used text-indent because i dont want to show link "text" but if you want to show link "text" , just don't use text-indent

    display:block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-indent: -99999px;
    

提交回复
热议问题