css 居中(div css居中的几种方法)
css居中 一、脱离文档流元素的居中 办法一:margin:auto法 CSS代码: div{width:300px;height:300px;position:relative;border:1pxsolid#465468; }img{p...
css居中 一、脱离文档流元素的居中 办法一:margin:auto法 CSS代码: div{width:300px;height:300px;position:relative;border:1pxsolid#465468; }img{p...