我已經構建了一個按鈕,並且在格式化方面存在問題(即平方,使文本在線等)格式化按鈕(字體,字體(相對)大小,對齊方式,內邊距)
我的當前的問題是: 文本是2份 - 上部線路正常 - 低級線是較大的字體尺寸
我的動畫正確地反應但文字應該是頂線和下內箭頭線。
<head>
<style>
img {
}
.button {
display: inline-block;
background-color: black;
border: none;
color: #dd1a23;
text-align: top;
font-size: 14px;
padding: 10px;
width: 200px;
transition: all 0.5s;
cursor: pointer;
margin: 20px;
}
.button span {
cursor: pointer;
display: inline-block;
position: relative;
left: 10px;
transition: 0.5s;
}
.button span:after {
position: absolute;
left: 10px;
opacity: 0;
top: 100px;
transition: 0.5s;
}
.button:hover span {
padding-left: 15px;
color: white;
}
.button:hover span:after {
opacity: 1;
right: 0;
}
</style>
</head>
<body>
<h2>Animated Button</h2>
<button class="button" style="vertical-align:top">
<img src="images/back_arrow.png">
<span>go back to<br> <style="font-size: 28px">Publication</span>
</button>
可你的地方上傳箭頭圖像,並在這裏分享呢? – jakob
http://i.imgur.com/cZBr1WR.png – Xav