How to increase the clickable area of a tag button?

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

I have learnt from this post that always use tags or

11条回答
  •  天涯浪人
    2021-01-29 22:42

    Just make the anchor display: block and width/height: 100%. Eg:

    .button a {
        display: block;
        width: 100%;
        height: 100%;
    }
    

    jsFiddle: http://jsfiddle.net/4mHTa/

提交回复
热议问题