【代码笔记】Web-CSS-CSS Align

一,效果图。

 

【代码笔记】Web-CSS-CSS Align_第1张图片

二,代码。

复制代码





    
    CSS Align
    



    

In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since.

'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.'

Note: Using margin:auto will not work in IE8, unless a !DOCTYPE is declared.

In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since.

'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.'

Note: When aligning using the position property, always include the !DOCTYPE declaration! If missing, it can produce strange results in IE browsers.

In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since.

'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.'

复制代码

 

参考资料:《菜鸟教程》

 

你可能感兴趣的:(【代码笔记】Web-CSS-CSS Align)