• <bdo id='YLnrz'></bdo><ul id='YLnrz'></ul>

  • <i id='YLnrz'><tr id='YLnrz'><dt id='YLnrz'><q id='YLnrz'><span id='YLnrz'><b id='YLnrz'><form id='YLnrz'><ins id='YLnrz'></ins><ul id='YLnrz'></ul><sub id='YLnrz'></sub></form><legend id='YLnrz'></legend><bdo id='YLnrz'><pre id='YLnrz'><center id='YLnrz'></center></pre></bdo></b><th id='YLnrz'></th></span></q></dt></tr></i><div id='YLnrz'><tfoot id='YLnrz'></tfoot><dl id='YLnrz'><fieldset id='YLnrz'></fieldset></dl></div>
    <legend id='YLnrz'><style id='YLnrz'><dir id='YLnrz'><q id='YLnrz'></q></dir></style></legend>
      <tfoot id='YLnrz'></tfoot>

      <small id='YLnrz'></small><noframes id='YLnrz'>

      1. 将鼠标悬停在完整的 div 上时,在 IE 中悬停不起作用

        时间:2023-11-29

        1. <i id='AqmJJ'><tr id='AqmJJ'><dt id='AqmJJ'><q id='AqmJJ'><span id='AqmJJ'><b id='AqmJJ'><form id='AqmJJ'><ins id='AqmJJ'></ins><ul id='AqmJJ'></ul><sub id='AqmJJ'></sub></form><legend id='AqmJJ'></legend><bdo id='AqmJJ'><pre id='AqmJJ'><center id='AqmJJ'></center></pre></bdo></b><th id='AqmJJ'></th></span></q></dt></tr></i><div id='AqmJJ'><tfoot id='AqmJJ'></tfoot><dl id='AqmJJ'><fieldset id='AqmJJ'></fieldset></dl></div>

            • <bdo id='AqmJJ'></bdo><ul id='AqmJJ'></ul>

              <tfoot id='AqmJJ'></tfoot>
                  <tbody id='AqmJJ'></tbody>
              • <small id='AqmJJ'></small><noframes id='AqmJJ'>

                  <legend id='AqmJJ'><style id='AqmJJ'><dir id='AqmJJ'><q id='AqmJJ'></q></dir></style></legend>
                • 本文介绍了将鼠标悬停在完整的 div 上时,在 IE 中悬停不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  I am using jquery addClass code to show/hide elements when rolling over a div. in all browsers it works but in IE it only works when i rollover some text, not the full div.

                  so in this example, if I rollover the showingtext section of the main div, the hiddentext div will show. but if I mouse into the space in between the two floating divs (where there is now text or anything), the hover doesnt work.

                  UPDATE: the code below seems to work, but my production code does not. Please refer to this link: jsfiddle.net/H2anm/5 There are some broken images and such, but if you roll your mouse over the element into the whitespace to the right of the usernames, the location coordinates and the Pref.brand: Gamehouse.. or some of the surrounding whitespace of the Share/Bookmark links, the div collapses and the buttons/bgcolor change disappear.

                  javascript:

                  $(function() {
                  $("div.DivThatsTriggeredOnRollover").hover( 
                  function() {  $("div.hiddentext").addClass("hiddentextShow"); },
                  function() { $("div.hiddentext").removeClass("hiddentextShow"); });
                  });
                  

                  pseudo-html code:

                  <div class="DivThatsTriggeredOnRollover" style="width:500px;">
                  
                  <div id="showingtext" style="float:left;width:100px;">
                  here is showing text
                  </div>
                  
                  <div class="hiddentext" style="float:right;width:100px;">
                  here is hidden text
                  </div>
                  
                  </div>
                  

                  解决方案

                  turns out that in IE7 if you have multiple floats inside of a larger div and you specify a width in one of the inner floating divs, you have to specify a width in the outermost ones as well. im not sure why this is the case, but it has been fixed in the version of my code here: http://jsfiddle.net/H2anm/8/

                  I needed to specify a width for the entire outer div, since I had specified one for the gray div. prior to that, if I rolled off of the red/gray the hover flip didnt work.

                  这篇关于将鼠标悬停在完整的 div 上时,在 IE 中悬停不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:悬停显示 DIV 闪烁 下一篇:CSS Sprites 在图像上显示损坏的图像图标,但悬停仍然有效

                  相关文章

                  <i id='5uGDc'><tr id='5uGDc'><dt id='5uGDc'><q id='5uGDc'><span id='5uGDc'><b id='5uGDc'><form id='5uGDc'><ins id='5uGDc'></ins><ul id='5uGDc'></ul><sub id='5uGDc'></sub></form><legend id='5uGDc'></legend><bdo id='5uGDc'><pre id='5uGDc'><center id='5uGDc'></center></pre></bdo></b><th id='5uGDc'></th></span></q></dt></tr></i><div id='5uGDc'><tfoot id='5uGDc'></tfoot><dl id='5uGDc'><fieldset id='5uGDc'></fieldset></dl></div>
                  <tfoot id='5uGDc'></tfoot>
                • <legend id='5uGDc'><style id='5uGDc'><dir id='5uGDc'><q id='5uGDc'></q></dir></style></legend>

                      <small id='5uGDc'></small><noframes id='5uGDc'>

                        <bdo id='5uGDc'></bdo><ul id='5uGDc'></ul>