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

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

      • <bdo id='g1Knb'></bdo><ul id='g1Knb'></ul>

        希望在模糊 div 上建立悬停/合同扩展

        Looking to build an expand on hover/contract on blur div(希望在模糊 div 上建立悬停/合同扩展)

          <tbody id='yWZy6'></tbody>

        <legend id='yWZy6'><style id='yWZy6'><dir id='yWZy6'><q id='yWZy6'></q></dir></style></legend>

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

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

          • <i id='yWZy6'><tr id='yWZy6'><dt id='yWZy6'><q id='yWZy6'><span id='yWZy6'><b id='yWZy6'><form id='yWZy6'><ins id='yWZy6'></ins><ul id='yWZy6'></ul><sub id='yWZy6'></sub></form><legend id='yWZy6'></legend><bdo id='yWZy6'><pre id='yWZy6'><center id='yWZy6'></center></pre></bdo></b><th id='yWZy6'></th></span></q></dt></tr></i><div id='yWZy6'><tfoot id='yWZy6'></tfoot><dl id='yWZy6'><fieldset id='yWZy6'></fieldset></dl></div>
            1. <tfoot id='yWZy6'></tfoot>
                  本文介绍了希望在模糊 div 上建立悬停/合同扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  Hey all, I've been beating my head against the search engine walls for a couple hours now and figure I might as well just ask...

                  I need to build a div that is one size on blur, say 300x30, that expands to 300x300 on hover and pushes all content below it down and will revert to the 300x30 size when blurred ("no longer hovered" or whatever you kids are calling it now-a-days lol) again. Can someone point me to some resources or even give me some code bits to play with? It'd be much appreciated!

                  解决方案

                  You can use Psuedo-classes in CSS if you don't want an animation.

                  div.div {
                     height: 30px;
                     width: 300px;
                     border: 1px solid black;
                  }
                  
                  div.div:hover {
                     height: 300px;
                  }
                  

                  Live Example

                  http://jsfiddle.net/aFUmS/

                  $('.div').hover(function() {
                      $(this).animate({
                          height: '300px'
                      }, 300);
                  },function() {
                      $(this).animate({
                          height: '30px'
                      }, 300);
                  });
                  

                  jQuery example if you want animation

                  http://jsfiddle.net/CvhkM/

                  这篇关于希望在模糊 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 的区别?)
                        <bdo id='zUJUA'></bdo><ul id='zUJUA'></ul>

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

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

                            <tfoot id='zUJUA'></tfoot>