Home  >  Article  >  Web Front-end  >  jsp里面的 link标签内嵌入按钮,按钮的css是引入图片,如何让按钮表示垂直居中_html/css_WEB-ITnose

jsp里面的 link标签内嵌入按钮,按钮的css是引入图片,如何让按钮表示垂直居中_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:47:371666browse

jsp里面的 link标签内嵌入按钮,按钮的css是引入图片,如何让按钮表示垂直居中??
问题是如何让按钮垂直居中??现在是垂直居上
以下是现在的代码。

<a href="" ><input type="button"  id="login"  value=""></a>

下面是现在有问题的样子


回复讨论(解决方案)

图片相对定位,或者直接padding-top:10px;

你是文字的位置需要下移吧。。样式引入图片:background:url(......) center center no-repeat;就左右上下都居中了

你为什么要在a标签内套input?

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