2016年9月4日

div水平垂直居中

摘要: 我们平时常用的定高,top:50%;left:50%和margin-left负一半宽度margin-top负一半高度的居中方式暂不考虑,因为这种方式大家都会。 第一种绝对定位(absolute centering)居中: 原理: 在普通内容流(normal content flow)中,margin 阅读全文

posted @ 2016-09-04 23:26 vivayue 阅读(191) 评论(0) 推荐(0) 编辑

导航