主頁
CSS
CSS 按鈕
Tryit:帶動畫的按鈕 - 滑鼠懸停時淡入
執行 ❯
建立您
自己的
網站
×
更改方向
儲存程式碼
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .button { background-color: #f4511e; border: none; color: white; padding: 16px 32px; text-align: center; font-size: 16px; margin: 4px 2px; opacity: 0.6; transition: 0.3s; display: inline-block; text-decoration: none; cursor: pointer; } .button:hover {opacity: 1} </style> </head> <body> <h2>Animated Button - Fade in Effect</h2> <button class="button">Hover Over Me</button> </body> </html>