📜  如何在 hmtl 中禁用链接 - CSS 代码示例

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

代码示例3
.isDisabled {
  color: currentColor;
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: none;
  pointer-events: none;
}