1. <small id='VwFq0'></small><noframes id='VwFq0'>

  2. <legend id='VwFq0'><style id='VwFq0'><dir id='VwFq0'><q id='VwFq0'></q></dir></style></legend><tfoot id='VwFq0'></tfoot>

      <i id='VwFq0'><tr id='VwFq0'><dt id='VwFq0'><q id='VwFq0'><span id='VwFq0'><b id='VwFq0'><form id='VwFq0'><ins id='VwFq0'></ins><ul id='VwFq0'></ul><sub id='VwFq0'></sub></form><legend id='VwFq0'></legend><bdo id='VwFq0'><pre id='VwFq0'><center id='VwFq0'></center></pre></bdo></b><th id='VwFq0'></th></span></q></dt></tr></i><div id='VwFq0'><tfoot id='VwFq0'></tfoot><dl id='VwFq0'><fieldset id='VwFq0'></fieldset></dl></div>
        <bdo id='VwFq0'></bdo><ul id='VwFq0'></ul>
    1. 悬停显示 DIV 闪烁

      On hover show DIV flicker(悬停显示 DIV 闪烁)

              <bdo id='wPfEg'></bdo><ul id='wPfEg'></ul>
                <tbody id='wPfEg'></tbody>

            • <legend id='wPfEg'><style id='wPfEg'><dir id='wPfEg'><q id='wPfEg'></q></dir></style></legend>

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

              • <tfoot id='wPfEg'></tfoot>

                <i id='wPfEg'><tr id='wPfEg'><dt id='wPfEg'><q id='wPfEg'><span id='wPfEg'><b id='wPfEg'><form id='wPfEg'><ins id='wPfEg'></ins><ul id='wPfEg'></ul><sub id='wPfEg'></sub></form><legend id='wPfEg'></legend><bdo id='wPfEg'><pre id='wPfEg'><center id='wPfEg'></center></pre></bdo></b><th id='wPfEg'></th></span></q></dt></tr></i><div id='wPfEg'><tfoot id='wPfEg'></tfoot><dl id='wPfEg'><fieldset id='wPfEg'></fieldset></dl></div>
                本文介绍了悬停显示 DIV 闪烁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我面临着非常烦人的问题.我有 2 个 div,如下所示,第一个 div 是产品图片,第二个是叠加层,当用户将鼠标悬停在产品图片上时应该显示.它确实有效,但是当图像悬停时,覆盖不会停止闪烁.我通过设置不透明度尝试了一些黑客",但没有任何效果.

                I am facing very annoying problem. I have 2 div's like bellow, first div is product image, and second one is overlay that should be shown when user hovers over product image. It does work, but when image is hovered, overlay doesnt stop flickering. I tried few "hacks" by setting opacity and nothing works.

                <div class="product-container">
                        <div class="product-image"><img src="http://placehold.it/200x200">  
                        <div class="overlay">PRICE</div>
                </div>
                

                网址是 http://jsfiddle.net/MZ3eE/我知道可以使用 JS,但在这种情况下我需要纯 CSS 解决方案.

                URL is http://jsfiddle.net/MZ3eE/ I know JS could be used, but in this case i need pure CSS solution.

                推荐答案

                看完新小提琴

                你需要这样做

                .product-container:hover .overlay-box {
                    display: block;
                }
                

                而不是

                .product-img-box:hover + .overlay-box {
                    display: block;
                }
                

                http://jsfiddle.net/avxLA/1/

                这篇关于悬停显示 DIV 闪烁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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 的区别?)

              • <tfoot id='t3ZX0'></tfoot>

                    • <bdo id='t3ZX0'></bdo><ul id='t3ZX0'></ul>
                        <tbody id='t3ZX0'></tbody>
                      <legend id='t3ZX0'><style id='t3ZX0'><dir id='t3ZX0'><q id='t3ZX0'></q></dir></style></legend>

                    • <small id='t3ZX0'></small><noframes id='t3ZX0'>

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