透明な背景をボタンに追加しようとしています。透明なホバー状態をボタンに追加する方法
私はそれが非常に簡単だと知っていますが、私はそれが有効でないために間違って何をしているのか分かりません。
私が書いたHTMLコード:
<div class="footer-text-cta">
<p>Want to know what equipment I use when I go kayaking?<button class="green-button"><a href="#" class="manual-optin-trigger" data-optin-slug="atefh5rvxazforll">I want to know!</a></button></p>
</div>
を私のCSSコード:
button.green-button{
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
padding: 7px 20px !important;
border-radius: 5px;
margin: 0px 0px 0px 20px;
background-color: #1ec279;
border: 3px solid #1ec279;
border-radius: 5px;
}
button.green-button a {
text-decoration: none;
color: #fff;
}
button.green-button a:hover{
background-color: transparent;
color: #1ec279;
}
私は以下のように見えるためにボタンを取得しようとしているものの画像を追加しました。ここで
おかげで、年齢はこれを理解することができないため、私の画面を見つめましたの! –