Eric @ EricBess WebHome

Wins do not arrogant, not to lose hungry, there is shock chest and face, such as mine Pinghu

Chinese (Simplified) flagItalian flagKorean flagPortuguese flagEnglish flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroat flagDanish flagFinnish flagHindi flagPolish flagRumanian flagSwedish flagNorwegian flag
By N2H

CSS positioning on

In the CSS on the location is: position: relative | absolute | static | fixed

static no special set, follow the basic provisions of the location, not z-index for grade level.
relative does not flow out of the document, refer to their static position through top, bottom, left, right location, and can z-index for grade level.
Documents from the absolute flow through the top, bottom, left, right positioning. Recently selected its parent element level position, when the father-level position for the static when, absolute element will be the starting point for positioning coordinates of the body, can z-index for grade level.
fixed a fixed location, where he fixed on the window like a visual rather than as a father or a body-level elements. By z-index for grade level.

CSS positioning in the stacked grade: z-index: auto | namber

relative | absolute | static | fixed position of these four different ways, we have to find a way to the location of the elements will also be different.

Dom element provides three ways to locate elements: offset, scroll, Client

Click to continue reading

September 8th, 2008 Posted by eric | Web technology | no comments