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

    采用css实现。

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>squeezebox</title>
        <style>
            *{
                padding:0;
                margin:0;
            }
            body{
                padding:100px;
            }
            li{
                list-style-type:none;
            }
            ul{
                600px;
                height:250px;
                overflow:hidden;
                background-color: red;
            }
            li{
                float:left;
                120px;
                -webkit-transition: width 0.5s ease-out;
                -moz-transition: width 0.5s ease-out;
                -ms-transition: width 0.5s ease-out;
                -o-transition: width 0.5s ease-out;
                transition: width 0.5s ease-out;
            }
            li:hover{
                400px;
            }
            ul:hover li:not(:hover){
                50px;
            }
        </style>
    </head>
    <body>
    <ul>
        <li><a href="#"><img src="http://img.elongstatic.com/index/ifold/20150422_ifold1.jpg" alt=""/></a></li>
        <li><a href="#"><img src="http://img.elongstatic.com/index/ifold/20150120_ifold2.jpg" alt=""/></a></li>
        <li><a href="#"><img src="http://img.elongstatic.com/index/ifold/20150120_ifold3.jpg" alt=""/></a></li>
        <li><a href="#"><img src="http://img.elongstatic.com/index/ifold/20150120_ifold4.jpg" alt=""/></a></li>
        <li><a href="#"><img src="http://img.elongstatic.com/index/ifold/20150120_ifold5.jpg" alt=""/></a></li>
    </ul>
    </body>
    </html>
    
  • 相关阅读:
    翻转单词顺序序列
    左旋转字符串
    查找第一个只出现一次的字符
    C语言函数与程序结构
    C语言实现快速排序法(分治法)
    C语言binsearch,shellsort,insertsort
    c语言的类型、运算符与表达式
    进程和线程
    CMS和G1
    Python IO编程
  • 原文地址:https://www.cnblogs.com/fangfeiyue/p/7381747.html
Copyright © 2011-2022 走看看