こんにちは私は固定された高さに設定されているdivを持っていて、あなたがその上にマウスを置くと、ある程度大きくなります。cssの特定の行のCSS遷移を無効にするにはどうすればよいですか?
また、divにマウスを合わせると背景色も変わります。
現在、ホバーは高さと背景色を遷移させます。背景色のみの遷移を無効にする方法はありますか?背景色は高さに伴って変化し、高さが変化すると黒から白に色あせします。私は背景色を消したくない。
HTML:
<div class="box">
<p class="text">text text text</p>
<p class="content">text text text text</p>
</div>
CSS:
.box {
background-color: #000;
width: 200px;
height: 300px;
position: relative;
top: 80px;
-webkit-transition: all 0.25s ease;
-moz-transition: all 0.25s ease;
-ms-transition: all 0.25s ease;
-o-transition: all 0.25s ease;
transition: all 0.25s ease;
}
.box:hover {
height: 300px;
background-color: #fff;
top: 40px;
}
あなたは、変更_all_プロパティを移行したくない、その後 'ALL'キーワードを使用しませんが、名前でプロパティを指定した場合。 – CBroe