• 纯css手风琴效果


     1 <!doctype html>
     2 <html lang="zh-cn">
     3 <head>
     4     <meta charset="UTF-8">
     5     <title>纯css写的一个手风琴效果供大家学习</title>
     6     <style>
     7         * { margin: 0; padding: 0; }
     8         body{background: #eee}
     9         .e-warp { width: 600px; height: 250px; overflow: hidden; margin: 100px auto; border-radius: 5px; box-shadow: 0 0 10px #999; }
    10         .e-warp li{ float: left; width: 120px; height: 100%; box-shadow: 0 0 5px rgba(0,0,0,0.5); list-style: none; width: 50px; 
    11                     -webkit-transition:width 0.5s ease-out;
    12                     -moz-transition:width 0.5s ease-out;
    13                     transition:width 0.5s ease-out;
    14                    }
    15         .e-warp li:first-child { width: 400px; }
    16         .e-warp li:hover { width: 400px; }
    17         .e-warp:hover li:not(:hover) { width: 50px; }
    18     </style>
    19 </head>
    20 <body>    
    21 <ul class="e-warp">
    22     <li><a href="#"><img src="http://y.photo.qq.com/img?s=4BsfCJx6G&l=y.jpg" alt="e-"/></a></li>
    23     <li><a href="#"><img src="http://y.photo.qq.com/img?s=MsUFaGd1k&l=y.jpg" alt="e-"/></a></li>
    24     <li><a href="#"><img src="http://y.photo.qq.com/img?s=DvIQnaOOz&l=y.jpg" alt="e-"/></a></li>
    25     <li><a href="#"><img src="http://y.photo.qq.com/img?s=ufFGoHfai&l=y.jpg" alt="e-"/></a></li>
    26     <li><a href="#"><img src="http://y.photo.qq.com/img?s=1AqJ4r5fs&l=y.jpg" alt="e-"/></a></li>
    27 </ul>
    28 </body>
    29 </html>
    • e-
    • e-
    • e-
    • e-
    • e-
    一个走在前端路上的妹子,萌萌哒~
  • 相关阅读:
    SimpleAdapter的用法
    ListView中加载大量的图片
    用PreferenceActivity做一个标准的设置界面
    用代码构造PreferenceScreen
    工具类之Condition
    工具类之Mutex
    Linux初探之如何查看帮助文档自学命令[网址]
    linux基础之帮助文档---常用的命令[转载]
    Linux 下常见的四款chm查看器比较[转载+亲测可用]
    Linux(Ubuntu)下MySQL的安装与配置[转载+亲测]
  • 原文地址:https://www.cnblogs.com/y327595826/p/3939032.html
Copyright © 2020-2023  润新知