CSS:悬停选择器工作不正常

CSS:悬停选择器工作不正常,css,hover,Css,Hover,:悬停选择器用于选择图元,但不用于此操作 我试过了,但不起作用,我怎样才能修复它 谢谢 您的选择器错误: .btn:hover { /* btn:hover is missing class selector the dot. */ background-color: red; } 您的选择器错误: .btn:hover { /* btn:hover is missing class selector the dot. */ background-color: red; } 谢谢,

:悬停选择器用于选择图元,但不用于此操作

我试过了,但不起作用,我怎样才能修复它 谢谢



您的选择器错误:

.btn:hover { /* btn:hover is missing class selector the dot. */
  background-color: red;
}

您的选择器错误:

.btn:hover { /* btn:hover is missing class selector the dot. */
  background-color: red;
}

谢谢,它起作用了,它起作用了
.btn:hover { /* btn:hover is missing class selector the dot. */
  background-color: red;
}