quick2.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <style>
  2. .quick.quick-quick2 a{text-decoration:none;}
  3. .quick.quick-quick2 {margin:0; padding:0; position:fixed; z-index:200; bottom:0; left:0; width:100%; list-style:none; display: -webkit-box; display: -moz-box; -webkit-box-orient: horizontal; -moz-box-orient: horizontal; -webkit-box-sizing: border-box; -moz-box-sizing: border-box;}
  4. .quick.quick-quick2 li{border:1px solid #b5b5b8; width:25%; height:45px; border-bottom:0; border-right:0; position:relative; -webkit-box-shadow:inset 0 0 3px #fff;}
  5. .quick.quick-quick2 li:nth-of-type(1){border-left:none;}
  6. .quick.quick-quick2 li>a{-webkit-box-sizing:border-box; box-sizing:border-box; border-bottom:0; display:block; line-height:45px; text-align:center; background:-webkit-gradient(linear, 0 0, 0 100%, from(#e7e4e7), to(#bebdbe));}
  7. .quick.quick-quick2 li>a.on + dl{display: block;}
  8. .quick.quick-quick2 li>a span{color:#4f4d4f; display:inline-block; text-align:center; -webkit-background-size:16px 16px; background-size:14px 14px; text-shadow:0 0 1px #fff; overflow:hidden;}
  9. .quick.quick-quick2 li>a:only-child span{background:none!important;padding-left:0;}
  10. .quick.quick-quick2 dl{display:none; position:absolute; z-index:220; bottom:45px; left:50%; min-width:80px; margin-left:-50px; background:red; min-height:100px; background:#e4e3e2; border:1px solid #afaeaf; border-radius:5px; -webkit-box-shadow:inset 0 0 3px #fff;}
  11. .quick.quick-quick2 dl:before, .quick.quick-quick2 dl:after{content:""; display:inline-block; position:absolute; z-index:240; bottom:0;left:50%; width:0; height:0; border:8px solid red; border-color:#afaeaf transparent transparent transparent; margin-left:-8px; margin-bottom:-16px;}
  12. .quick.quick-quick2 dl:after{z-index:241; border-color:#e4e3e2 transparent transparent transparent; margin-bottom:-15px;}
  13. .quick.quick-quick2 dl dd{margin:0; line-height:50px; text-align:center;}
  14. .quick.quick-quick2 dl dd:last-of-type{background:none;}
  15. .quick.quick-quick2 dl dd a{display:block; color:#4f4d4f; text-shadow:0 0 1px #fff;}
  16. .quick.quick-quick2 > * {-webkit-box-flex: 1; -moz-box-flex: 1;}
  17. @-moz-document url-prefix(){
  18. .quick.quick-quick2{clear:both;background:#D4D2D4;}
  19. .quick.quick-quick2 li{width:25%; float:left;}
  20. }
  21. </style>
  22. <div class="top_bar footer_bar">
  23. <div class="quick quick-quick2">
  24. {php $i = 1;$k = 0;}
  25. {loop $_W['quickmenu']['menus'] $nav}
  26. {if $i < 4}
  27. <li>
  28. <a href="{$nav['url']}" style="{$nav['css']['icon']['style']}">
  29. <span style="{$nav['css']['name']}">{$nav['name']}</span>
  30. </a>
  31. </li>
  32. {/if}
  33. {if $i==4}
  34. {php $k = 1;}
  35. <li>
  36. <a href="javascript:;" onclick="this.classList.toggle('on');">
  37. <span>更多</span>
  38. </a>
  39. <dl>
  40. {/if}
  41. {if $i>3}
  42. <dd>
  43. <a href="{$nav['url']}">
  44. <span style="{$nav['css']['name']}">{$nav['name']}</span>
  45. </a>
  46. </dd>
  47. {/if}
  48. {php $i++;}
  49. {/loop}
  50. {if $k==1}
  51. </dl>
  52. </li>
  53. {/if}
  54. </div>
  55. </div>