quick4.html 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. <style>
  2. .quick.quick-quick4 {padding:0px; margin:0px; height:50px; position:fixed; z-index:200; bottom:0; left:0; width:100%; background:#ececec; 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;}
  3. .quick.quick-quick4 li{width:25%; padding-top:3px;}
  4. .quick.quick-quick4 li span{overflow:hidden;}
  5. .quick.quick-quick4 li>a{color:#8c8f94; text-decoration:none; -webkit-box-sizing:border-box; box-sizing:border-box; border-bottom:0; display:block; height:100%; text-align:center; -webkit-tap-highlight-color:rgba(0,0,0,0);}
  6. .quick.quick-quick4 li>a>p{display: block; width:25px; height:25px; margin:auto; padding-top:5px; -webkit-background-size:100px auto;}
  7. .quick.quick-quick4 li>a>p i{ display:block; width:20px; height:20px; font-size:20px;}
  8. .quick.quick-quick4 li>a>*{pointer-events:none;}
  9. @-moz-document url-prefix(){
  10. .quick.quick-quick4{overflow:hidden;}
  11. .quick.quick-quick4 li{width:25%; float:left;}
  12. }
  13. </style>
  14. <div class="quick quick-quick4 clearfix">
  15. {php $i = 1;}
  16. {loop $_W['quickmenu']['menus'] $nav}
  17. <li>
  18. <a href="{$nav['url']}" title="{$nav['name']}">
  19. <p>
  20. {if !empty($nav['icon'])}
  21. <i style="background:url({media $nav['icon']}) no-repeat;background-size:cover;{$nav['css']['icon']['style']}"></i>
  22. {else}
  23. <i class="fa {$nav['css']['icon']['icon']}" style="{$nav['css']['icon']['style']}"></i>
  24. {/if}
  25. </p>
  26. <span style="{$nav['css']['name']}">{$nav['name']}</span>
  27. </a>
  28. </li>
  29. {php if($i>=4) break;}
  30. {php $i++;}
  31. {/loop}
  32. </div>