为什么display:inline-block出现不对齐_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 08:56:25
Original
1209 people have browsed it


    
   

   
 用户名错误



运行这样
   
 用户名错误
这个加vertical-align: top;就成
或者   

就成这样


回复讨论(解决方案)

display: inline-block; zoom: 1; *display: inline;可以试下这个看看                     推荐将图片的div去掉 正解在最外层的div设置背景图片

display: inline-block; 是基于 vertical-align:baseline对齐的,所以就像你上面写的,加个 或改下vertical-align类型就好。

w我后来按照浏览器的变化和一些知识作出了自己的一些判断由于篇幅太大,所以传个地址http://user.qzone.qq.com/571013930/blog/1456136826

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template