垂直对齐输入类型=“按钮”

时间:2013-12-14 20:08:43

标签: html css

我对垂直对齐输入type="button"有点麻烦。

HTML

<input name="" type="button" class="question-button-1 btn-1" value="Call us" />

CSS

.btn-1 {
  background: url(http://i.imgur.com/KSR0hpJ.png) top left no-repeat;
  width: 313px;
  height: 78px;
  font-family: 'pt_sansbold';
  font-size: 18px;
  color: #fff;
  padding: 0;
  text-align: center;
  vertical-align: top;
  cursor: pointer;
}

http://jsfiddle.net/pLcNd/3/

我使用了vertical-align: top;,但看起来它绝对不起作用 如何将文本移动到按钮的上边缘? (我需要使用input type="button"

0 个答案:

没有答案