块元素对齐 使用 margin 属性来水平对齐,margin:0 auto 仅适用于标准流有宽度的块级元素 使用 position 属性进行左和右对齐 使用 float 属性来进行左和右对齐 CSS 导航条 水平导航栏,行内或浮动li元素 垂直导航栏,把a设置成dispaly:block,让点击某一块区域就跳转