初歩的な質問で恐縮です。
こちらのような、右上のメールアイコンのボタンを作っています。
しかし、カーソルを持ってきてもポインター(手の形)にならず、
hoverで背景を変更したいのですが、変更されません…
アドバイスをいただけますと幸いです。以下コードです。
■html部分
<body> <canvas class="webgl"></canvas> <div class="top__contact_btn"> <a href="#" class="contact_btn"> <i class="fas fa-envelope"></i> </a> </div> <main class="section"> <div class="content"> <h1>site</h1> <div class="top__main"> <div> Ayako Ito </div> Web Engineer/Corder </div> <button class="top__button">My Works</button> </div> </main> </body>
■css部分
* { margin: 0; padding: 0; font-family: 'Noto Sans JP', sans-serif; } html { font-size: 62.5%; /*1rem = 10px*/ scroll-behavior: smooth; background-image: url(./images/bg2.jpg); background-size: cover; } body { overflow: hidden; backdrop-filter: blur(25px); font-size: 1.4rem; } a { text-decoration: none; cursor: pointer; } .webgl { position: fixed; top: 0; left: 0; outline: none; } main { height: 100vh; color: #f0f5f2; position: relative; } main .content { position: absolute; top: 0%; left: 7%; } main h1 { font-size: 7.0rem; margin-bottom: 3rem; } .top__main { margin-bottom: 3rem; font-size: 2.0rem; } a.contact_btn { color: #aaa; font-size: 3rem; border: 1px solid #aaa; border-radius: 50%; padding: 0.5rem 1.2rem; transition: all 0.5s; } a.contact_btn:hover { background: #f0f5f2; color: #494646; border: 1px solid #494646; } .top__contact_btn { padding: 2rem; display: flex; justify-content: flex-end; }
追加情報が必要でしたら教えてください。
よろしくお願いいたします。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/08/23 08:44