如何禁用 a 標籤的點擊事件 disabled屬性 和 pointer-events屬性值詳解

首先 ,你們要知道: a標籤 是沒有disable 屬性的 , 若是想用disable 禁止a標籤的點擊事件,也是能夠實現的;往下看css 1. a標籤 要用  disable 屬性,必須和  pointer-events屬性一塊兒使用  ,例子 以下:chrome      HTML 部分代碼:瀏覽器      <a class="praise">贊</a>字體        JS 代碼: th
相關文章
相關標籤/搜索