前提・実現したいこと
IE11とEdgeでaタグに内包された全要素を同時に:hoverで透過させたい。
発生している問題・エラーメッセージ
下記コードにて、chrome・firefoxでは全体を透過することができたのですが
IE11・Edgeでは画像部分のみしか透過されません。
html5で書いておりますので文法に誤りはない・・と思いたいです。
ご教授の程、宜しくお願い致します。
該当のソースコード
html
1<div class="section"> 2<a href="index.html"> 3<img src="sample.jpg" width="420" height="241" alt=""/> 4<div class="css-box"> 5<h4>見出し</h4> 6<p>テキスト</p> 7</div> 8</a> 9</div>
css
1.section { 2 position:relative; 3} 4.css-box { 5 position: absolute; 6 width: 240px; 7 height: 240px; 8 text-align: left; 9 padding: 50px 0 50px 25px; 10 top: 25px; 11 left: 25px; 12 box-sizing: border-box; 13 background-color: rgba(213, 19, 31, 0.95); 14 box-shadow: 0 0 0.769230769vw rgba(0,0,0,0.2); 15} 16a { 17 display: block; 18 transition: all 0.2s; 19} 20a:hover { 21 opacity: 0.5; 22}
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/01 00:02
2018/10/01 00:06
2018/10/01 00:18
2018/10/01 00:23