• <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 中无法正常工作

        时间:2023-11-29
      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 中无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:从 :hover with .css() 获取 css 值 - jquery 下一篇:CSS,改变链接中图标字体的悬停效果

                  相关文章

                  <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>