zoukankan      html  css  js  c++  java
  • 手风琴效果

    <!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{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({300},500).siblings().stop().animate({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>
    

     

  • 相关阅读:
    TCP/IP四层模型
    Java中equals和==的区别
    最全前端资源汇集
    (转)php面向对象学习笔记
    学习内容
    Gulp入门教程
    seajs的CMD模式的优势以及使用
    正则
    Grunt
    Javascript 异步加载详解
  • 原文地址:https://www.cnblogs.com/zhangli1021/p/7109643.html
Copyright © 2011-2022 走看看