高校のバスケットボール チームのために取り組んでいるサイトで、特定の要素が Internet Explorer で機能しません。サイトは hermantownbasketball.com です。男子バスケットボールのサイドバーには、ドロップダウン メニューが入れ子になっている必要があります。1 つは「高校」などのチームの上にマウスを置いたとき、もう 1 つはチームの下の学年 (9 年生など) の上にマウスを置いたときに表示されます。これは chrome では問題なく動作しますが、Internet Explorer のどのバージョンでも動作しません。以下は、私が使用しているhtmlと対応するcssの一部です。
残念ながら、コード IE のどの部分が気に入らないか、またはそれを修正する方法を知るのに十分な css を知りません。
どんな助けでも大歓迎です!
HTML
<span class = "boyItem">
<h3>High School</h3>
<li class="group">
<h4>9th Grade</h4>
<div class = "nested">Schedule</div>
<div class = "nested">Events</div>
<div class ="nested">Forms</div>
<div class ="nested">Calendar</div>
</li>
<li class="group">
<h4>JV/Varsity</h4>
<div class = "nested">Schedule</div>
<div class = "nested">Events</div>
<div class = "nested">Forms</div>
<div class = "nested">Calendar</div>
</li>
</span>
/* Creates the box around the title for each boy section. */
.boyItem h3 { background:#1C23E8;
color:#EFFA20;
padding-right:2px; padding:10px;
font-size:18px;
margin-left:-30px;
margin-top:-10px;
}
###CSS
.boyItem h3:hover { background:#2A8FF5; }
/* Prevents the boy sub-sections from being visable */
.boyItem li h4 { position: absolute; left:-9999px; font-size:15px; list-style-type:none;}
/* Shows the boy sub-sections when user mouses over the section title. */
.boyItem:hover li h4 {
position:relative;
left:10px;
background:#1C23E8;
color:#EFFA20;
padding-left:20px;
padding:5px;
}
.boyItem:hover li h4:hover { background:#2A8FF5;}
.nested { position:absolute;
left:-9999px;
background:#352EFF;
color:#EFFA20;
padding-right:2px;
padding:4px;
font-size:14px;
margin:2px;
margin-left:30px;
margin-top:0px;
margin-right:0px;
margin-bottom:-2px;}
.group:hover .nested {position:relative; left:0px; }
.group:hover .nested:hover { background:#2A8FF5}