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

WBOY
Release: 2016-06-24 11:20:30
Original
1712 people have browsed it

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


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


回复讨论(解决方案)

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

实在不行用定位  子绝父相

td : {vertical-align:middle}

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

td a{vertical-align:middle;}

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

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