これは私のコードです:
HTML:
<div class="container">
<div class="myBox">My Text</div>
<a class="myLink" href="http://www.google.com"> </a>
</div>
CSS:
.container
{
position:relative;
width:200px;
height:200px;
}
.myBox
{
position:absolute;
top:0;
left:0;
z-index:90;
background-color:#ff0000;
width:200px;
height:200px;
}
.myLink
{
text-decoration:none;
display:block;
position:absolute;
width:50px;
height:50px;
top:0px;
left:0px;
z-index:100;
}
IE7では、「マイテキスト」上のリンクはリンクとして機能しません。背景色をmyLink
付けると、それも機能します。
私は麻薬を飲んでいますか、それとも通常の行動ですか?そして、どうすれば透明な背景でこれを修正できますか?