照恩

  1. 设计草案

Flexbox实现垂直水平居中

<style type="text/css">
.container{border:1px solid red; height:200px;
display: flex; justify-content: center; align-items: center; text-align:center;
}
</style>
<div class="container">
<img src="http://pic.cnitblog.com/face/340216/20131017185242.png" alt="fireworks">
</div>

posted @ 2016-06-02 10:28  Jweb2  阅读(184)  评论(0编辑  收藏  举报