我想垂直居中對齊按鈕中的兩組文本。我該怎麼做呢?垂直居中對齊文本按鈕
我演示:http://jsfiddle.net/fc6317ne/
a.block {
color: #ffffff;
background: #F0F0F0;
font-size: 0.8rem;
height: 60px;
text-align: center;
text-decoration: none;
width: 30%;
float: left;
margin-right: 10px;
margin-bottom: 10px;
display: inline-block;
vertical-align: middle;
}
<a href="" class="block active">Button</a>
<a href="" class="block active">Button That Has More Words</a>
謝謝!!這看起來很完美:) – michaelmcgurk 2015-03-25 12:29:51
@michaelmcgurk ..很高興 – 2015-03-25 12:30:21