1.css居中
margin:0px auto;
width:xxxpx;//必填
含有position: absolute;的居中
position: absolute;
width:xx px;
left:50%;
margin-left:xx/2 px;
设置底部位置且(就是一直在底部居中)
position: absolute;
width: xx px;
left:50%;
margin-left:-xx/2 px;
bottom:0px;
margin:0px auto;
width:xxxpx;//必填
position: absolute;
width:xx px;
left:50%;
margin-left:xx/2 px;
设置底部位置且(就是一直在底部居中)
position: absolute;
width: xx px;
left:50%;
margin-left:-xx/2 px;
bottom:0px;