码迷,mamicode.com
首页 > 其他好文 > 详细

手风琴效果

时间:2017-07-03 12:12:01      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:技术分享   logs   image   seo   asc   type   body   oct   html   

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="js/jquery-1.12.1.js"></script> 
<title>手风琴效果</title>
<style>
ul , h2 { padding:0; margin:0; }
li { list-style:none; }
body{}
.sfq{width:300px; height: 200px; float: left; }
.red{ background-color: red; }
.green{ background-color: green; }
.yellow{ background-color: yellow; }
.blue{ background-color:blue; }
.orange{ background-color: orange; }
</style>
<script type="text/javascript">
$(function(){
	$(‘.sfq‘).mouseover(function(){
		$(this).stop().animate({width:300},500).siblings().stop().animate({width:30},500)
	})
})
</script>
</head>
<body>
<div class="sfq red"></div>
<div class="sfq green"></div>
<div class="sfq yellow"></div>
<div class="sfq blue"></div>
<div class="sfq orange"></div>
</body>
</html>

技术分享

 

 

手风琴效果

标签:技术分享   logs   image   seo   asc   type   body   oct   html   

原文地址:http://www.cnblogs.com/zhangli1021/p/7109643.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!