Recently, I have been thinking about JQ in the project, so some of my experiences have been put up in a timely manner. I would like to ask you if I have any questions.
In the project, the left menu is folded and displayed, which is common in the software interface (originally copy a section on the InternetCodeThis is the case. It is estimated that the writing is better than me, but learning requires a Learning Spirit ^ !),
I used. animate () to hide and expand it. The Code is as follows:
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <HTML xmlns = "http://www.w3.org/1999/xhtml">
If so, it would be normal to execute in FF, IE7-8, chrome. However, left cannot be hidden in IE6 because div is automatically opened when the content width in IE6 is exceeded by default. Therefore, you only need to add overflow: hidden to. Left {} to solve the problem ~~
PS: I wrote a function in the morning. the content in left is hidden. When I wrote a blog post, I suddenly figured out this principle and thought it was. animate () has a bug in IE6 and loves to die in the blog Park. Haha ^!