首页htmldisabledCSS Property Value - 如何disabled; 禁用悬停效果

CSS Property Value - 如何disabled; 禁用悬停效果

我们想知道如何disabled; 禁用悬停效果。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.myElement {
  color: green;
  cursor: pointer;
}

.myElement:hover {
  color: red;
}

.myElement.disabled {
  color: green;
}
</style>
</head>
<body>
  <div class="myElement">normal</div>
  <div class="myElement disabled">disabled</div>
</body>
</html>