web前端学习笔记

1、子div居中

如果让子div水平居中,且子div定宽,可以使用:

margin: 0 auto;

 

posted on 2018-04-24 09:01  Geography爱好者  阅读(148)  评论(0编辑  收藏  举报

导航