javascript - Div not properly hiding in IE -
I have some tools on my website - on the load I want to hide some of them, I showed them some I'm hiding which I do not want to do:
$ (". Divtoheide"). Hide (); This Chrome, Firefox, IE8 works well in an opera ... it is not in IE6 (I have not tested the previous version yet ... ) - When I page all the divs are hidden properly When I click on a link which appears to one of them, it looks correct, problems show that when I click on a different link which first hides the divan and the second shows the first The text of the divisor is hidden, but the image is present and disrupts the newly shown div. I'm pretty sure that this is a bug - when I zoom in or out in the page, the divisors were suddenly hidden - they only appear when I load the page.
Edit: I am using jQuery v1.3.2
Edit: Unfortunately, the solution to use addClass to add the CSS class which is display: any does not actually work - it seemed as if it had done before, but The problem is still there.
Update: The JS file I wrote can be found, while HTML is available. The problem I have is that when you go from one portfolio to another, the image of the first time remains there, even if it should be hidden (the text is right under the change). When you try to zoom in / out inside the page, the wrong disappears.
I used to hide all the portfolios using the $ ("# divId"). Hide () , but now I used "code" $ ("ClassToHide") as I was told below. Hide () .
Update: The problem is resolved on IE8 - I forgot to include it in Standard Mode Declaration ... However, this is still a problem on IE6.
What are div using an ID selector you are hiding multiple?
Try to give those divisions a square "divToHide" and then use it:
$ (". DivToHide"). Hide (); It may be that IE8 handles duplicate IDs as compared to those other browsers.
Comments
Post a Comment