全网整合营销服务商

电脑端+手机端+微信端=数据同步管理

免费咨询热线:400-708-3566

jQuery实现鼠标经过显示动画边框特效

原效果用addClass 改为slideUp,纯学习

效果图:

代码如下:

<!DOCTYPE html>
<html lang="en">
<head>
 <meta charset="UTF-8">
 <link rel="stylesheet" type="text/css" href="css.css" rel="external nofollow" >
 <title>Document</title>
</head>
<body>
 <style type="text/css">
*{margin:0;padding:0;list-style-type:none;}
a,img{border:0;}
a{color:#000;text-decoration: none;font-weight: 600}
body{font:12px/180% Arial, Helvetica, sans-serif, "新宋体";}
.sph{
 width: 1300px;
 margin: 0 auto;
 padding: 100px 0;
}
.spbq{
 width: 250px;
 height: 250px;
 float: left;
 line-height: 2;
 padding: 10px 10px 0 20px;
 margin: 20px;
 position: relative;
 overflow: hidden;
}
.spbq h2{
 color: #14191e;
 font: bold 14px/18px "Microsoft Yahei","Hiragino Sans GB",Helvetica,"微软雅黑",Tahoma,Arial,sans-serif;
 margin-top: 18px;
}
.spbq span{
 display: block;
 color: #b4bbbf;
 font: 12px/18px "Microsoft Yahei","Hiragino Sans GB",Helvetica,"微软雅黑",Tahoma,Arial,sans-serif;
 margin: 8px 0;
}
.spbq b{
 color: #787d82;
 font: 12px/18px "Microsoft Yahei","Hiragino Sans GB",Helvetica,"微软雅黑",Tahoma,Arial,sans-serif;
}
.biankuang{
 width: 3px;
 height: 3px;
 position: absolute;
 z-index: 99;
 border-radius:10px;
 /*background: black;*/
}
.biankuang_1{
 height: 3px;
 top: -6px;
 left:0px;
 border-left: 3px solid #EB5858;
}
.biankuang_2 {
 width: 0px;
 bottom:-3px;
 left: 0px;
 border-top: 3px solid #EB5858;
}
.biankuang_3{
 height: 0px;
 bottom:0px;
 right:0px;
 border-right: 3px solid #EB5858;
}
.biankuang_4{
 width:0px;
 top:-3px;
 right:0px;
 border-bottom: 3px solid #EB5858;
}
.text_gobuy {
 position: absolute;
 z-index: 9;
 bottom: 0;
 left: 0px;
 width: 280px;
 height: 50px;
 overflow: hidden;
 background-color: rgba(32, 32, 33,0.5);
 cursor: pointer;
 display: none;
 text-align: center;
}
.text_gobuy_show{
padding: 20px 15px ;
opacity: 1;
}
.spbq p{
 position: absolute;
 bottom:10px;
 left:110px;
 line-height: 33px;
 color: #fff
}
</style>
</head>
<body>
<div class="sph">
 <div class="spbq">
 <div class="biankuang biankuang_1"></div>
 <div class="biankuang biankuang_2"></div>
 <div class="biankuang biankuang_3"></div>
 <div class="biankuang biankuang_4"></div>
 <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><div class="zst"><img src="http://www.jq22.com/demo/jQuery-hover20161208/images/0-135.jpg" alt=""></div><h2>jQuery基础课程</h2><span>让jQuery带您进入网页动态交互世界,为...</span><b>更新完毕 &nbsp;&nbsp;&nbsp;15783人学习</b></a>
 <div class="text_gobuy">
  <br/>
  <p>9小时17分钟 | 初级</p>
  <br/>
 </div>
 </div>
 <div class="spbq">
 <div class="biankuang biankuang_1"></div>
 <div class="biankuang biankuang_2"></div>
 <div class="biankuang biankuang_3"></div>
 <div class="biankuang biankuang_4"></div>
 <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><div class="zst"><img src="http://www.jq22.com/demo/jQuery-hover20161208/images/0-135.jpg" alt=""></div><h2>jQuery基础课程</h2><span>让jQuery带您进入网页动态交互世界,为...</span><b>更新完毕 &nbsp;&nbsp;&nbsp;15783人学习</b></a>
 <div class="text_gobuy">
  <br/>
  <p>9小时17分钟 | 初级</p>
  <br/>
 </div>
 </div> 
 <div class="spbq">
 <div class="biankuang biankuang_1"></div>
 <div class="biankuang biankuang_2"></div>
 <div class="biankuang biankuang_3"></div>
 <div class="biankuang biankuang_4"></div>
 <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><div class="zst"><img src="http://www.jq22.com/demo/jQuery-hover20161208/images/0-135.jpg" alt=""></div><h2>jQuery基础课程</h2><span>让jQuery带您进入网页动态交互世界,为...</span><b>更新完毕 &nbsp;&nbsp;&nbsp;15783人学习</b></a>
 <div class="text_gobuy">
  <br/>
  <p>9小时17分钟 | 初级</p>
  <br/>
 </div>
 </div>
 <div class="spbq">
 <div class="biankuang biankuang_1"></div>
 <div class="biankuang biankuang_2"></div>
 <div class="biankuang biankuang_3"></div>
 <div class="biankuang biankuang_4"></div>
 <a href="#" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" ><div class="zst"><img src="http://www.jq22.com/demo/jQuery-hover20161208/images/0-135.jpg" alt=""></div><h2>jQuery基础课程</h2><span>让jQuery带您进入网页动态交互世界,为...</span><b>更新完毕 &nbsp;&nbsp;&nbsp;15783人学习</b></a>
 <div class="text_gobuy">
  <br/>
  <p>9小时17分钟 | 初级</p>
  <br/>
 </div>
 </div>
</div>  
<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script> 
<script type="text/javascript">
function biankuang(obj) {
  $(obj).find('.biankuang_1').stop(true).animate({
      height: '305px'
    },
    300)
  $(obj).find('.biankuang_2').stop(true).delay('300').animate({
      width: '305px'
    },
    300)
  $(obj).find('.biankuang_3').stop(true).animate({
      height: '305px'
    },
    300)
  $(obj).find('.biankuang_4').stop(true).delay('300').animate({
      width: '305px'
    },
    300)
}
function biankuang1(obj) {
  $(obj).find('.biankuang_1').animate({
      height: '0'
    },
    100)
  $(obj).find('.biankuang_2').animate({
      width: '0'
    },
    100)
  $(obj).find('.biankuang_3').animate({
      height: '0'
    },
    100)
  $(obj).find('.biankuang_4').animate({
      width: '0'
    },
    100)
}
$('.spbq').hover(function() {
  var obj = $(this);
  obj.find('.text_gobuy').slideDown(300);
  biankuang(obj);
}, function() {
  var obj = $(this);
  obj.find('.text_gobuy').slideUp(300);
  biankuang1(obj);
})
</script>
</body>
</html>

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,同时也希望多多支持!


# 鼠标经过边框特效代码  # jquery鼠标悬停特效  # 鼠标悬停边框特效  # jQuery实现边框动态效果的实例代码  # jquery插件corner实现圆角边框的方法  # JQuery拖动表头边框线调整表格列宽效果代码  # JQuery实现鼠标移动到图片上显示边框效果  # jquery给图片添加鼠标经过时的边框效果  # jQuery 淡入淡出 png图在ie8下有黑色边框的解决方法  # jquery photoFrame 图片边框美化显示插件  # jquery(1.3.2) 高亮选中图片边框  # jquery实现边框特效  # 微软  # 带您  # 人学  # 新宋体  # serif  # sph  # sans  # auto  # Helvetica  # width  # weight  # decoration  # font  # Arial  # px  # overflow  # hidden  # bold  # Microsoft  # Yahei 


相关文章: ui设计制作网站有哪些,手机UI设计网址吗?  太平洋网站制作公司,网络用语太平洋是什么意思?  如何获取开源自助建站系统免费下载链接?  建站之星代理平台如何选择最佳方案?  怎么制作一个起泡网,水泡粪全漏粪育肥舍冬季氨气超过25ppm,可以有哪些措施降低舍内氨气水平?  制作网站建设的公司有哪些,网站建设比较好的公司都有哪些?  如何获取免费开源的自助建站系统源码?  c++怎么使用类型萃取type_traits_c++ 模板元编程类型判断【方法】  新网站制作渠道有哪些,跪求一个无线渠道比较强的小说网站,我要发表小说?  在线ppt制作网站有哪些软件,如何把网页的内容做成ppt?  香港服务器租用费用高吗?如何避免常见误区?  如何通过山东自助建站平台快速注册域名?  网站好制作吗知乎,网站开发好学吗?有什么技巧?  郑州企业网站制作公司,郑州招聘网站有哪些?  大连网站设计制作招聘信息,大连投诉网站有哪些?  东莞市网站制作公司有哪些,东莞找工作用什么网站好?  攀枝花网站建设,攀枝花营业执照网上怎么年审?  php能控制zigbee模块吗_php通过串口与cc2530 zigbee通信【介绍】  免费网站制作模板下载,除了易企秀之外还有什么H5平台可以制作H5长页面,最好是免费的?  北京网站制作网页,网站升级改版需要多久?  黑客如何通过漏洞一步步攻陷网站服务器?  手机网站制作与建设方案,手机网站如何建设?  如何在万网主机上快速搭建网站?  已有域名能否直接搭建网站?  网站制作话术技巧,网站推广做的好怎么话术?  如何撰写建站申请书?关键要点有哪些?  头像制作网站在线观看,除了站酷,还有哪些比较好的设计网站?  建站主机CVM配置优化、SEO策略与性能提升指南  视频网站制作教程,怎么样制作优酷网的小视频?  Avalonia如何实现跨窗口通信 Avalonia窗口间数据传递  如何用手机制作网站和网页,手机移动端的网站能制作成中英双语的吗?  如何通过FTP服务器快速搭建网站?  常州企业网站制作公司,全国继续教育网怎么登录?  学校为何禁止电信移动建设网站?  深圳网站制作案例,网页的相关名词有哪些?  php8.4新语法match怎么用_php8.4match表达式替代switch【方法】  建站之星免费版是否永久可用?  阿里云网站制作公司,阿里云快速搭建网站好用吗?  宁波自助建站系统如何快速打造专业企业网站?  英语简历制作免费网站推荐,如何将简历翻译成英文?  建站之星好吗?新手能否轻松上手建站?  如何挑选最适合建站的高性能VPS主机?  b2c电商网站制作流程,b2c水平综合的电商平台?  建站之星如何开启自定义404页面避免用户流失?  如何解决VPS建站LNMP环境配置常见问题?  香港网站服务器数量如何影响SEO优化效果?  如何制作公司的网站链接,公司想做一个网站,一般需要花多少钱?  如何通过西部建站助手安装IIS服务器?  深圳网站制作平台,深圳市做网站好的公司有哪些?  建站VPS配置与SEO优化指南:关键词排名提升策略 

您的项目需求

*请认真填写需求信息,我们会在24小时内与您取得联系。