Home  >  Article  >  Web Front-end  >  多张图片在同一个DIV中水平居中并且垂直居中 不忽悠 纯DIV+CSS实现 不用JS_html/css_WEB-ITnose

多张图片在同一个DIV中水平居中并且垂直居中 不忽悠 纯DIV+CSS实现 不用JS_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:28:021390browse

前段时间需要用到图片在同一个DIV中垂直居中 四处寻觅 好不容易获得 在此和大家分享

首先申明,这不是我写的,只是搜索到的。

 

 
 

 
   
   
 

 

   

       

       

           
  • 多张图片在同一个DIV中水平居中并且垂直居中 不忽悠 纯DIV+CSS实现 不用JS_html/css_WEB-ITnose

  •        
  • 多张图片在同一个DIV中水平居中并且垂直居中 不忽悠 纯DIV+CSS实现 不用JS_html/css_WEB-ITnose

  •        
  • 多张图片在同一个DIV中水平居中并且垂直居中 不忽悠 纯DIV+CSS实现 不用JS_html/css_WEB-ITnose

  •        

       

   

   
你好 我是右边

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn