div sets the hover style, and the hover event is set in jq. Clicking div after the mouse hover div will trigger hover invalidation. How to solve this problem?
-
html page code
.box-div{ width: 200px; height: 200px; background-color: rgba(255, 255, 255, 1); border: 1px solid rgba(220, 220, 220, 1); -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none; } .box-div:hover{ box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.2); }