<bdo id='klvO9'></bdo><ul id='klvO9'></ul>

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

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

      1. <i id='klvO9'><tr id='klvO9'><dt id='klvO9'><q id='klvO9'><span id='klvO9'><b id='klvO9'><form id='klvO9'><ins id='klvO9'></ins><ul id='klvO9'></ul><sub id='klvO9'></sub></form><legend id='klvO9'></legend><bdo id='klvO9'><pre id='klvO9'><center id='klvO9'></center></pre></bdo></b><th id='klvO9'></th></span></q></dt></tr></i><div id='klvO9'><tfoot id='klvO9'></tfoot><dl id='klvO9'><fieldset id='klvO9'></fieldset></dl></div>
      2. 悬停时特定于 jquery 的显示按钮

        jquery specific show buttons on hover(悬停时特定于 jquery 的显示按钮)
      3. <small id='Z7dA8'></small><noframes id='Z7dA8'>

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

            <tbody id='Z7dA8'></tbody>

                <bdo id='Z7dA8'></bdo><ul id='Z7dA8'></ul>
                • 本文介绍了悬停时特定于 jquery 的显示按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个应用程序通过循环创建一堆 div.

                  I have an application creating a bunch of divs through a loop.

                  每个 div 都有产品"类

                  Each div has the class "product"

                  看起来像

                  <div class="product">
                         !.....stuff here ....!
                         <div class="show_on_hover">...buttons here... </div>
                  </div>
                  

                  所以每页大约有 12 个相同的 div.

                  so there are about 12 of these same divs per page.

                  我想将鼠标悬停在一个特定的上方并显示最初设置为 display:none 的特定show_on_hover"div.

                  I would like to hover over a specific one and show the specific "show_on_hover" div which is initially set to display:none.

                  $('.product').hover(function() {
                      $(.show_on_hover).show();
                      },
                      function () {
                          $(.show_on_hover).hide();
                      }
                  );
                  

                  到目前为止,这就是我所拥有的,但它会在页面上显示所有 .show_on_hovers,所以我想知道如何仅获取您将鼠标悬停在上面的特定显示.当您将鼠标悬停在任何评论上时,会在 youtube 上看到这种效果,并且会弹出一些评论工具.

                  That is what I have so far but it will show ALL of the .show_on_hovers on the page so I am wondering how to get only the specific one you have moused over to show. This effect is seen on youtube when you mouseover any of the comments, and some comment tools pop up.

                  谢谢!

                  推荐答案

                  find 将在悬停的 .product 中找到您的 .show_on_hover div.试试这个:

                  find will find your .show_on_hover divs inside the hovered .product. Try this:

                  $('.product').hover(function() {
                          $(this).find('.show_on_hover').show();
                      },
                      function () {
                          $(this).find('.show_on_hover').hide();
                      }
                  );
                  

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

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

                  相关文档推荐

                  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 的区别?)
                      <legend id='hgwxg'><style id='hgwxg'><dir id='hgwxg'><q id='hgwxg'></q></dir></style></legend>
                        <tbody id='hgwxg'></tbody>

                          <bdo id='hgwxg'></bdo><ul id='hgwxg'></ul>

                          1. <tfoot id='hgwxg'></tfoot>

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

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