Html and css distal notes finishing section (5)

hover: Use the time to unify all the attention, and then define the current

Element identification inline block attributes Enter a space, so it is best not inline element wraps to write.

                  Inline flow without departing from standards, to support text-align

margin: 0 auto; standard stream only inside the block elements to do so;

After the float element does not support text align

Indefinite wide navigation horizontal center:

ul{text-align:center}
li{display: inline-block}

What is the baseline: English alphabet third line

Solution picture display block gap and then the parent box set fontsize 0, vertical-align: top middle bottom

captive relative position relative positioning mark, stations, their relative positioning; top face of the top bottom listen; listen left of left face right

position absolute positioning relative to the block containing the note "father of the child must phase", do not write the coordinates left in situ

             fixed positioning relative to the window

z-index only element of a positioning function, if the parent box commencement z-index, the sub-box failure z-index

transparency opacity 0 ~ 1, if the parent-child cassette with transparency, the transparency is multiplied by both the sub-box

 

Guess you like

Origin www.cnblogs.com/wangbingblog/p/11365786.html
Recommended