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

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

      2. <legend id='qDFJd'><style id='qDFJd'><dir id='qDFJd'><q id='qDFJd'></q></dir></style></legend>
          <bdo id='qDFJd'></bdo><ul id='qDFJd'></ul>
        <tfoot id='qDFJd'></tfoot>

        突出显示悬停条件下的多个项目

        Highlight multiple items on hover#39;s condition(突出显示悬停条件下的多个项目)
        <legend id='kpQss'><style id='kpQss'><dir id='kpQss'><q id='kpQss'></q></dir></style></legend>

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

          <tfoot id='kpQss'></tfoot>

            <tbody id='kpQss'></tbody>

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

                  问题描述

                  好吧抱歉标题,不太清楚如何表达它.

                  Okay sorry for the title, wasn't too sure how to phrase it.

                  所以我们有一个项目正在进行,并且我们根据人们捐赠的内容提供多种激励措施(类似于 Kickstarter,如果你知道那是什么的话).

                  So we have a project going, and we are offering multiple incentives depending on what people donate (similar to Kickstarter if you know what that is).

                  无论如何,我们一直试图弄清楚的是,当有人徘徊在一个价格范围时,我们希望他们将收到的物品完全不透明,然后对于进一步降低的捐赠值也是如此.

                  Anyway, what we have ben trying to figure out is when someone hovers on one price range we want the items they will receive to have full opacity, and then the same for the further down donation values.

                  也许图片会更有意义..

                  Maybe the image will make more sense..

                  所以蓝色是悬停,当您将鼠标悬停在$1+"上时,项目 1、3、4 是不透明的.但是,当您将鼠标悬停在$15+"上时,只有项目 1、3 是不透明的.

                  So the blue is the hover, and when you hover over the "$1+", items 1, 3, 4 are opaque. But when you hover over the "$15+" only items 1, 3 are opaque.

                  大约有 20 种商品,15 个价格等级,所有这些都相互关联.

                  There are around 20 items, and 15 price brackets, all in which are interlinked with one another.

                  我认为这必须是 JS 中的一个,我对此一无所知.

                  I assume this has to be one in JS, something I know nothing about.

                  谢谢你:]

                  谢谢你的所有提示.我已经用 css3 完成了这个项目:不是

                  Thank you for all the tips. I have completed the project with the css3 :not

                  而后备将是 JS

                  推荐答案

                  我会给出一个比较简单的解决方案.

                  I will give a rather simple solution.

                  给每个盒子的价格类别,其中应该是不透明的.有点像

                  Give every boxes classes of price where should be opaque on. Kinda like

                  <div id="item1" class="p1 p15">Item 1</div>
                  

                  然后,在您的价格链接上使用类名作为特定链接的 id

                  Then, on your price links use the classname as the id for the specific links

                     <a class="price" id="p1">$1+</a>
                  

                  然后使用

                  $(".price").mouseover(function() {
                             $(".items").css("opacity", 0.4);
                             id = $(this).attr('id');
                             $("."+id).css("opacity", 1);
                  });
                  

                  这篇关于突出显示悬停条件下的多个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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='KoeFd'></tfoot>

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

                    2. <small id='KoeFd'></small><noframes id='KoeFd'>

                        <bdo id='KoeFd'></bdo><ul id='KoeFd'></ul>
                        <legend id='KoeFd'><style id='KoeFd'><dir id='KoeFd'><q id='KoeFd'></q></dir></style></legend>