css3 居中定位方法

html中實現div居中定位的方法:CSS部分代碼以下:css css代碼以下: 方法(1): .test { width:100px; height:100px; background:#000; position:absolute; left:0; top:0; margin-left:-50px; margin-top:-50px; } 方法(2): .test { wid
相關文章
相關標籤/搜索