我在按钮内使用非典型图像背景。我需要使此文本在按钮内显示为“高于”默认值(垂直居中)。我必须做什么?
CSS:
.button {
width: 211px;
height: 66px;
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
text-transform: uppercase;
color: white;
background: url('../img/button.png') no-repeat;
border: none;
cursor: pointer;
}
HTML:
<input type="submit" class="button" value="Submit"/>
(...)
<button class="button">Get a quote</button>
来自浏览器的屏幕:
如您所见,按钮中的文本应该比现在高一点