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

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

        :hover 在 IE9 中无法正常工作

        :hover is not working properly in IE9(:hover 在 IE9 中无法正常工作)
      1. <small id='N0jrp'></small><noframes id='N0jrp'>

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

                <tfoot id='N0jrp'></tfoot>
                  <legend id='N0jrp'><style id='N0jrp'><dir id='N0jrp'><q id='N0jrp'></q></dir></style></legend>

                  本文介绍了:hover 在 IE9 中无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个简单的 CSS 下拉菜单,里面有一个 iframe.当我将鼠标悬停在下拉菜单上时,菜单会下拉.但是当我的鼠标悬停在菜单内的 iframe 时,菜单会返回.这是我的代码的简化版本:

                  I have a simple CSS dropdown menu with an iframe inside it. When I hover my mouse over the dropdown menu, the menu drops down. But when my mouse hovers the iframe inside the menu, the menu goes back. Here's a simplified version of my code:

                  <div id="comments">
                    <a href="#" class="btn">View comments</a>
                    <div id="comment-wrap">
                      <iframe src="http://www.facebook.com/plugins/comments.php?..."></iframe>
                    </div>
                  </div>
                  
                  <style type="text/css">
                  #comment-wrap{display:none;z-index:5;position:absolute;padding:10px;background-color:#fff;}
                  #comments:hover #comment-wrap{display:block;}
                  </style>
                  

                  这适用于最新版本的 FF、Chrome 和 Opera.

                  This works in the latest versions of FF, Chrome, and Opera.

                  附:当我的鼠标悬停在#comment-wrap 的内边距时,下拉菜单保持下拉状态.

                  P.S. The dropdown menu remain dropped down when my mouse is hovering the padding of #comment-wrap.

                  推荐答案

                  我在使用 :hover 伪类时遇到了类似的问题.当我将浏览器的文档模式更改为 IE 9 并且浏览器模式也设置为 IE9 时,它开始正常工作.IE 9 的文档模式默认设置为 IE8.

                  I have faced similar problems while working with the :hover psuedo class. It started working fine when I changed the Document mode of the browser to IE 9 and the Browser mode also set to IE9. IE 9 has the document mode set to IE8 by default.

                  此外,您可以在 head 标签中添加以下元信息:

                  Additionally, you can add the following meta info in the head tag:

                  <meta http-equiv="X-UA-Compatible" content="IE=9"/>
                  

                  希望这会有所帮助.

                  这篇关于:hover 在 IE9 中无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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='m7hkQ'><tr id='m7hkQ'><dt id='m7hkQ'><q id='m7hkQ'><span id='m7hkQ'><b id='m7hkQ'><form id='m7hkQ'><ins id='m7hkQ'></ins><ul id='m7hkQ'></ul><sub id='m7hkQ'></sub></form><legend id='m7hkQ'></legend><bdo id='m7hkQ'><pre id='m7hkQ'><center id='m7hkQ'></center></pre></bdo></b><th id='m7hkQ'></th></span></q></dt></tr></i><div id='m7hkQ'><tfoot id='m7hkQ'></tfoot><dl id='m7hkQ'><fieldset id='m7hkQ'></fieldset></dl></div>
                  <legend id='m7hkQ'><style id='m7hkQ'><dir id='m7hkQ'><q id='m7hkQ'></q></dir></style></legend>

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

                      <tfoot id='m7hkQ'></tfoot>
                          <bdo id='m7hkQ'></bdo><ul id='m7hkQ'></ul>
                              <tbody id='m7hkQ'></tbody>