Home > Web Front-end > JS Tutorial > Solve the problem of jquery's .animate() function under IE6_jquery

Solve the problem of jquery's .animate() function under IE6_jquery

WBOY
Release: 2016-05-16 18:14:52
Original
1014 people have browsed it

Implement the effect of folding and displaying the left menu in the project. This is common in software interfaces (Originally, it’s just a matter of copying a piece of code online. I guess you can write better than me, but to learn, you have to learn. Spirit^^!),
I use .animate() to implement hidden expansion, the code is as follows:

Copy code The code is as follows:





Untitled Document





123


123




If so If it is a subtitle, it will run normally under FF, IE7-8, and chrome. However, the left cannot be hidden under IE6. The reason is that when the default content height and width of IE6 exceeds, the DIV will automatically expand. So as long as you add overflow:hidden to .left{}, the problem will be solved~~
PS: I originally wrote a function to hide the content in .left this morning, but I suddenly figured this out while writing a blog post. The principle, I thought it was a bug in .animate() under IE6
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