源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

jquery实现盒子下拉效果示例代码

  • 时间:2022-05-04 16:41 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:jquery实现盒子下拉效果示例代码
[u]复制代码[/u] 代码如下:
<script src="js/Jquery1.7.js"></script> <script type="text/javascript"> $(function () { $('div:eq(1)').css({ 'margin-top': '-=100px' }); $('div:first').mouseover(function () { $('div:eq(1)').animate({'margin-top':'+=100px'}); }) $('div:first').mouseout(function () { $('div:eq(1)').animate({ 'margin-top': '-=100px' }); }) </script>
[u]复制代码[/u] 代码如下:
<pre name="code" class="html"><div style="width:600px;height:300px;overflow:hidden;"> <div style="background-color:#000;height:100px;"> </div> <div style="background-color:#eee;height:300px;"> </div> </div></pre><br> <pre></pre> <pre name="code" class="html"></pre><pre name="code" class="html">当把鼠标移动到盒子上的时候上面就会出现一个黑色的盒子</pre><pre name="code" class="html">这是在浏览网页的时候看到的一个效果</pre><pre name="code" class="html">在这里写了一下</pre>
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部