Home  >  Article  >  Web Front-end  >  这个如何调整为两个按钮垂直居中?_html/css_WEB-ITnose

这个如何调整为两个按钮垂直居中?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:20:301692browse

<td><a name="buttonA">ButtonA</a><a name="buttonB">ButtonB</a>\<td>


这个要加什么样式才能做到让这两个a标签按钮垂直居中?


回复讨论(解决方案)

把a 的display设置为块元素属性,display:block,然后用宽高、margin设置就可以了

实在不行用定位  子绝父相

td : {vertical-align:middle}

最好两个a 在同一行。。。。。不要另起一行

td a{vertical-align:middle;}

http://css.doyoe.com/   文本里面找

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