您好我試圖定製我的按鈕像Spotify。如何實現像表格中的Spotify播放按鈕的按鈕css
當懸停表格行顯示播放按鈕,然後單擊播放按鈕更改圖像。
我從其他小提琴和更新的諮詢。現在我點擊一個元素,另一個元素將隱藏。但是,我不知道如何在開始時隱藏其中一個。
a {
display: block;
font-size: 18px;
border: 2px solid gray;
border-radius: 100px;
width: 100px;
height: 100px;
text-align: center;
line-height: 100px;
}
a:hover {
font-size: 18px;
border: 2px solid green;
border-radius: 100px;
width: 100px;
height: 100px;
}
a:target {
display: none;
font-size: 18px;
border: 2px solid red;
border-radius: 100px;
width: 100px;
height: 100px;
}
<a id="btn" href="#btn">Play</a>
<a id="btn2" href="#btn2">Pause</a>