<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 的显示按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  在开发JS过程中,会经常遇到两个小数相运算的情况,但是运算结果却与预期不同,调试一下发现计算结果竟然有那么长一串尾巴。如下图所示: 产生原因: JavaScript对小数运算会先转成二进制,运算完毕再转回十进制,过程中会有丢失,不过不是所有的小数间运算会
                  append() 方法在被选元素的结尾(仍然在内部)插入指定内容。 语法: $(selector).append( content ) var creatPrintList = function(data){ var innerHtml = ""; for(var i =0;i data.length;i++){ innerHtml +="li class='contentLi'"; innerHtml +="a href
                  问题描述: 在javascript中引用js代码,然后导致反斜杠丢失,发现字符串中的所有\信息丢失。比如在js中引用input type=text onkeyup=value=value.replace(/[^\d]/g,) ,结果导致正则表达式中的\丢失。 问题原因: 该字符串含有\,javascript对字符串进行了转
                  Rails/Javascript: How to inject rails variables into (very) simple javascript(Rails/Javascript:如何将 rails 变量注入(非常)简单的 javascript)
                  CoffeeScript always returns in anonymous function(CoffeeScript 总是以匿名函数返回)
                  Ordinals in words javascript(javascript中的序数)
                      <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>