css| Difference
Cause:
A few days ago in doing a picture without clearance scrolling effect, to take advantage of a hidden layer.
Problem:
Copy the previous text scrolling effect code (no error when scrolling text), the result found that the page was stretched one times, that is, hidden layer.
Solve:
After looking up the CSS manual, we found that the hidden content is different, one is to retain the physical space of the object, one is not retained.
-------------------------------
Display:none
CSS1 hidden objects. Unlike the hidden value of the visibility property, it does not retain its physical space for the object being hidden
Visibility:hidden
Object is hidden, unlike the display property, which retains the physical space it occupies for hidden objects.
But because of the use of Visibility:hidden, the elongated content is actually the div containing the picture, and instead of display:none after the normal.