• <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 中悬停不起作用

        Hover in IE not working when hovering over full div(将鼠标悬停在完整的 div 上时,在 IE 中悬停不起作用)

        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 中悬停不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Move link image 5px up on hover(悬停时将链接图像向上移动 5px)
                  How do I inspect CSS pseudo classes with firebug?(如何使用 firebug 检查 CSS 伪类?)
                  Why doesn#39;t CSS hover work on table rows when the cells inside the rows have class names?(当行内的单元格具有类名时,为什么 CSS 悬停在表格行上不起作用?)
                  Hover image - display div over it(悬停图像 - 在其上显示 div)
                  How to apply a CSS class on hover to dynamically generated submit buttons?(如何在悬停时将 CSS 类应用于动态生成的提交按钮?)
                  Differences between CSS3 :hover and :focus?(CSS3 :hover 和 :focus 的区别?)
                  <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>
                      <tbody id='5uGDc'></tbody>
                    <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>