APICloud学习笔记之设置图片居中

1 .box{
2             background-color:#eee; 
3             padding-top:50px;      
4         }
5         
6         img{
7             display:block; 
8             margin:0 auto;
9         }
1 <div class="box"><img src="../image/order/a3q.png"><br></div>

 方法2:

1 background-position: center center;

 

posted @ 2017-03-24 17:12  喜爱糖葫芦  阅读(487)  评论(0编辑  收藏  举报