WeChat Mini Programs's hover-class style doesn't work.

setting hover-class for navigator and button does not work, but setting for view does. My navigator and button both have background colors. Does that have anything to do with this?


<button style="background:red;" hover-class="green">123</button>
.green {
  background: green !important;
}

you can check the style in the development tool, can you see it?


is there hover on mobile phones?


hover-class is clicked. I can do it here. Do you have a specific class name?

Menu