Tapping on

前端 未结 11 650
有刺的猬
有刺的猬 2021-01-30 21:51

Tapping on does not auto-focus linked in Mobile Safari but If an empty function as clickhandler is defined like this

document.getElem         


        
11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 22:18

    
    

    To enable the tap on iOS everywhere on the label tag, you need to add to its direct children (expect input), pointer-events: none;

    .name-checkbox, .some-info {
          pointer-events: none;
        }
    

提交回复
热议问题