Home > Web Front-end > HTML Tutorial > span centering problem_html/css_WEB-ITnose

span centering problem_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:43:50
Original
1257 people have browsed it





无标题文档







tt
vv








一定float left
我怎么样才能让两个span在b中水平居中而且顶部不超过b呢???????? 


回复讨论(解决方案)

span{
padding:10px;
border:#999 solid 1px;
display: inline-block;
}


span{
padding:10px;
border:#999 solid 1px;
line-height: 40px;
}

span 里面加display: inline-block; 就可以饿了





无标题文档







tt
vv




Related labels:
source:php.cn
Previous article:Android animation learning--Tween Animation_html/css_WEB-ITnose Next article:CSS implements color gradient effect under different browsers_html/css_WEB-ITnose
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
Latest Articles by Author
Latest Issues
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template