联系我们
简单又实用的WordPress网站制作教学
当前位置:网站首页 > 网页前端技术 > 正文

jquery实现盒子下拉效果示例代码 - Web前端

作者:98wpeu发布时间:2026-05-21分类:网页前端技术浏览:10


导读:复制代码代码如下:<scriptsrc="JS/JQuery1.7.js"></script><scripttype="text/javasc...
复制代码 代码如下:
<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>

复制代码 代码如下:
<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>

标签:示例盒子效果代码Webjquery


网页前端技术排行
最近发表
网站分类
标签列表