Rumah > Artikel > hujung hadapan web > span居中问题_html/css_WEB-ITnose
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
span{
padding:10px;
border:#999 solid 1px;
display: inline-block;
}
span{
padding:10px;
border:#999 solid 1px;
line-height: 40px;
}
span 里面加display: inline-block; 就可以饿了
nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">