div居中

top: 50%;
 left: 50%;
 transform: translate(-50%,-50%);/*在水平和垂直方向上各偏移-50%*/
相關文章
相關標籤/搜索