css几种垂直居中的方式(面试常考题1)
水平垂直居中(一)定位和需要定位的元素的margin减去宽高的一半 <style> *{ padding: 0; margin: 0; } .box{ width: 300px; height: 300px; ba...