今日、私はアニメーションのアイコンを達成しようとしていましたが、CSSに問題がありました。HTML CSSのホバーが動作しない
.Menu {
width: 100%;
height: 50px;
position: fixed;
background-color: #35f5ca;
top: 0;
left: 0;
}
.title {
font-family: "Sans-Serif";
position: fixed;
top: 1%;
left: 0;
vertical-align: middle;
font-size: 150%;
color: white;
}
.icon:hover {
width: 45px;
height: 45px;
position: fixed;
right: 0px;
top: 0px;
opacity: 1.0;
}
.body {}
<div class="Menu">
<p1 class="title">
<b>
\t Mettu
\t </b>
<img class="icon" src="images/iconplanet.png" style="transition: all 0.5s; width:40px; height:40px; position:fixed; right: 5px; top: 0.5%; opacity: 0.5;" />
</p1>
</div>
<div class="body">
</div>
ちょうど私のコードを修正しないでください、と私は間違って何をしたかを教えてください:upcommingコードは、私が言うことができる以上のことを言うだろう。ありがとうございました!