📜  不可点击的按钮 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:37.285000             🧑  作者: Mango

代码示例1
/*works on all html elements*/
a {
  display: inline-block;
  pointer-events: none;
}

/*pointer events may target its descendant elements
if those descendants have pointer-events set to some other value.*/
/*demo https://codepen.io/abdelghanymh/pen/eYGeMdR*/