Safari anchors on links not working

后端 未结 6 1760

My html anchor is as follows.


A title

As far as I

6条回答
  •  悲哀的现实
    2020-11-30 14:39

    To fix an anchor tag in Safari. I proceed this way :

     A tag
    

    And on my css file :

    .btn{
      display:block;
      width:100%;
      height:100%;
    }
    

    The important thing is for some reason, sometimes Safari needs to see your link as a block, and it can be useful if you create a list, with some links inside. Example :

    
    

    Works for Safari 6+

提交回复
热议问题