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

span centering problem_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:43:501230browse





无标题文档







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




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
Previous article:Android animation learning--Tween Animation_html/css_WEB-ITnoseNext article:Android animation learning--Tween Animation_html/css_WEB-ITnose

Related articles

See more