jquery图像滑块导航选项卡背景图像在IE中没有变化

时间:2012-06-14 20:47:13

标签: jquery html css jquery-ui slider

我正在使用jquery图像滑块,其中有3个标签,其中包含文本信息,在每个标签中我都给出了不同的背景图像,我希望它们在标签悬停或活动效果时更改为其他图像,它在所有标签中都运行良好IE以外的浏览器(我在IE7,8,9中测试过)。在IE中,当任何选项卡变为活动状态时,其背景图像将更改为tab3(最后一个选项卡)的活动背景图像。如果您需要其他信息,请与我们联系。 下面是我的html代码及其css:

<div id="featured_slide">
  <div id="featured_wrap">
   <ul id="featured_tabs">
    <li class="tb1"><a href="#fc1">A<br />
      <span>test message1.</span></a></li>
    <li class="tb2"><a href="#fc2">B<br />
      <span>test message2.</span></a></li>
    <li class="tb3"><a href="#fc3">C<br />
      <span>test message3</span></a></li>        
  </ul>
  <div id="featured_content">
    <div class="featured_box" id="fc1"><img src="images/Main1.png" alt="" />

    </div>
    <div class="featured_box" id="fc2"><img src="images/Main2.png" alt="" />

    </div>
    <div class="featured_box" id="fc3"><img src="images/Main3.png" alt="" />

    </div>

  </div>
</div>

  <style>
#featured_slide ul#featured_tabs li.last
{
        border-bottom:none;
}

#featured_slide ul#featured_tabs li.tb1
{
    background:url("../images/Slider1.png") top right no-repeat transparent;
}
#featured_slide ul#featured_tabs li.tb2
{
    background:url("../images/Slider2.png") top right no-repeat transparent;
}
#featured_slide ul#featured_tabs li.tb3
{
    background:url("../images/Slider3.png") top right no-repeat transparent;
}


#featured_slide ul#featured_tabs li.tb1 a:hover
{
    background:url("../images/Slider1Active.png") top right no-repeat transparent;
}
#featured_slide ul#featured_tabs li.tb2 a:hover
{
    background:url("../images/Slider2Active.png") top right no-repeat transparent;
}
#featured_slide ul#featured_tabs li.tb3 a:hover
{
    background:url("../images/Slider3Active.png") top right no-repeat transparent;
}


#featured_slide ul#featured_tabs li.tb1.ui-tabs-selected a
{
    background:url("../images/Slider1Active.png") top right no-repeat transparent;  
}
#featured_slide ul#featured_tabs li.tb2.ui-tabs-selected a
{
    background:url("../images/Slider2Active.png") top right no-repeat transparent;
}
#featured_slide ul#featured_tabs li.tb3.ui-tabs-selected a
{
background:url("../images/Slider3Active.png") top right no-repeat transparent;
}   

</style>

1 个答案:

答案 0 :(得分:0)

看起来你错过了收盘。在你的html底部添加另一个结束div,看看是否能解决问题。