The example is as follows: Copy code The code is as follows: Jquery uses mouseenter and mouseleave to realize that the mouse passes through the pop-up layer and can be clicked <br> $( document).ready(function () {<br> var ps = $("#div_pro").position();<br> 🎜> //Distance from top margin<br> float_box").mouseleave(function () {<br> head><br><body><br> ; <div><br> ; <a href="#" id="div_pro">Guangdong Province</a><br> </div><br> <div id="float_box" style="display:none;"><br> <a href="#">Shenzhen City</a> <br> <a href="# ">Guangzhou city</a><br> ;/html><br><br> </div>