html中div如何水平和垂直居中的几种css方法代码
一、记录下几种盒子居中的方法: 1、margin固定宽高居中; 2、负margin居中; 3、绝对定位居中; 4、table-cell居中; 5、flex居中; 6、transform居中; 7、不确… 阅读更多 »html中div如何水平和垂直居中的几种css方法代码
一、记录下几种盒子居中的方法: 1、margin固定宽高居中; 2、负margin居中; 3、绝对定位居中; 4、table-cell居中; 5、flex居中; 6、transform居中; 7、不确… 阅读更多 »html中div如何水平和垂直居中的几种css方法代码