Home > Web Front-end > JS Tutorial > body text

Techniques for solving the problem that the Chrome browser does not support the onmouseleave event_javascript techniques

WBOY
Release: 2016-05-16 17:32:57
Original
1093 people have browsed it

I haven’t tested chrome before. There wasn’t much going on today, so I tested it and found that the onmouseleave event added to the div had no effect in chrome;

Later I found that the solution was implemented using jquery
For example

Copy code The code is as follows:

aaaaaa
");

Write onmouseleave='$(this).slideUp();' Chrome cannot be used in the div. When it is ready, modify $("#aaa").mouseleave(function click() { $(this).slideUp(); }); and it will be ok.

Problem solved, share~
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template