<font size="3"> 这是一个HTML5折叠菜单,但更像是一个折叠面板,仿苹果手机的passbook应用中的代码例子,请在火狐或chrome下浏览。不知道有没有听说过手机琴菜单,觉得这一个从形式上来说,是挺像的。</font><div class="blockcode"> <div id="code_Cp3"><ol> <li> <br> </li> <li> <br> </li> <li> <br> </li> <li> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <br> </li> <li> <title>passbook仿苹果手机的面板合拢折叠效果-html5特效</title> <br> </li> <li><style><br> </style></li> <li>.pocket{<br> </li> <li>width:300px;<br> </li> <li>height:460px;<br> </li> <li>padding: 10px;<br> </li> <li>overflow: hidden;<br> </li> <li>float: left;<br> </li> <li>border: 1px solid #EDEDED;<br> </li> <li>margin: 4px;<br> </li> <li>border-radius: 8px;<br> </li> <li>box-shadow:0 -5px 30px rgba(0,0,0,0.2) inset;<br> </li> <li>}<br> </li> <li>.passcard {<br> </li> <li>float: left;<br> </li> <li>width:300px;<br> </li> <li>height:380px;<br> </li> <li>color: #878787;<br> </li> <li>text-align: center;<br> </li> <li>padding-top: 5px;<br> </li> <li>margin-bottom: -320px;<br> </li> <li>cursor: pointer;<br> </li> <li>}<br> </li> <li>.starbucks{<br> </li> <li>background:url(/jscss/demoimg/201307/starbucks.png) no-repeat;<br> </li> <li>}<br> </li> <li>.airport{<br> </li> <li>background:url(/jscss/demoimg/201307/airport.png) no-repeat;<br> </li> <li>}<br> </li> <li>.paper{<br> </li> <li>border: 1px solid #EDEDED;<br> </li> <li>color: #A8A8A8;<br> </li> <li>text-align: center;<br> </li> <li>font:26px 'Segoe UI Light',Helvetica,Arial,'Sans-Serif';<br> </li> <li>background:-webkit-gradient(linear,left top,left bottom,color-stop(50%,rgba(229, 249, 249, 1)),color-stop(100%,rgba(240, 240, 240, 1)));<br> </li> <li>background: -webkit-linear-gradient(top,rgba(249, 249, 249, 1) 50%,rgba(240, 240, 240, 1) 100%);<br> </li> <li>background: -moz-linear-gradient(top,rgba(249, 249, 249, 1) 50%,rgba(240, 240, 240, 1) 100%);<br> </li> <li>background: -o-linear-gradient(top,rgba(249, 249, 249, 1) 50%,rgba(240, 240, 240, 1) 100%);<br> </li> <li>background: -ms-linear-gradient(top,rgba(249, 249, 249, 1) 50%,rgba(240, 240, 240, 1) 100%);<br> </li> <li>background: linear-gradient(top,rgba(249, 249, 249, 1) 50%,rgba(240, 240, 240, 1) 100%);<br> </li> <li>background: -webkit-linear-gradient(top,rgba(255, 255, 255, 0.05) 0%,rgba(255, 255, 255, 0.05) 20%,rgba(0, 0, 0, 0.05) 100%);<br> </li> <li>border-radius:14px;<br> </li> <li>box-shadow:-2px -1px 2px rgba(0,0,0,0.1);<br> </li> <li>}<br> </li> <li>.pod {<br> </li> <li>background: none repeat scroll 0 0 white;<br> </li> <li>cursor: pointer;<br> </li> <li>height: 160px;<br> </li> <li>width: 300px;<br> </li> <li>border: 1px solid #CDCDCD;<br> </li> <li>border-radius: 6px;<br> </li> <li>float: left;<br> </li> <li>margin: 3px 15px 15px 3px;<br> </li> <li>box-shadow: 0 0 3px rgba(0, 0, 0, 0.2),0 -4px 0 #E8E8E8 inset;<br> </li> <li>}<br> </li> <li> <br> </li> <li> <br> </li> <li> <br> </li> <li> <div class="pocket"> <br> <li> <div class="passcard starbucks"></div> <br> </li> <li> <div class="passcard starbucks"></div> <br> </li> <li> <div class="passcard starbucks"></div> <br> </li> <li> </div> <br> </li> <li> <div class="pocket"> <br> <li> <div class="passcard airport"></div> <br> </li> <li> <div class="passcard airport"></div> <br> </li> <li> <div class="passcard airport"></div> <div class="passcard airport"></div> <br> </li> <li> </div> <br> </li> <li> <div class="pocket"> <br> <li> <div class="passcard paper">passcard 1</div> <br> </li> <li> <div class="passcard paper">passcard 2</div> <br> </li> <li> <div class="passcard paper">passcard 3</div> <br> </li> <li> </div> <br> </li> <li> <br> </li> <li> <script type="text/javascript" src="/ajaxjs/jquery-1.7.2.min.js"></script><br> </li> <li><script type="text/javascript"><br> </script></li> <li>$(function(){<br> </li> <li>$('.passcard').hover(function(){<br> </li> <li>$(this).stop(false,false).animate({'margin-bottom':'-100px'},400)<br> </li> <li>},function(){<br> </li> <li>$(this).stop(false,false).animate({'margin-bottom':'-320px'},400)<br> </li> <li>})<br> </li> <li>})<br> </li> <li> <br> </li> <li> <br> </li> <li> </ol></div> <em onclick="copycode($('code_Cp3'));">复制代码</em> </div> <p style="text-align: center;"><a href="data/attachment/forum/201407/02/144639wjjwa2djy2yuyjuj.jpg" target="_blank"><img src="data/attachment/forum/201407/02/144639wjjwa2djy2yuyjuj.jpg" alt="HTML5仿苹果手机的面板合拢折叠效果" ></a></p>