原创 實現 DIV 水平垂直居中方法總結

<div class="parent"> <div class="child"></div> </div> 非定寬高情況 1. 利用絕對定位 .parent { position: relative; } .c