icon.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <div class="icon_group">
  2. <ul>
  3. <li><a href="{:url('/index/index/index')}"><img class="stroke_border" style="margin-top: 15%;margin-left: 22%; width: 1.2rem;height: 1.2rem;" src="/static/index/images/nav_icon1.png"/></a></li>
  4. <li><a href="{:url('/index/index/commodity')}"><img class="stroke_border" style="margin-top: 20%;margin-left: 20%;width: 1.2rem;height: 1.2rem;" src="/static/index/images/nav_icon2.png"/></a></li>
  5. <li><a href="{:url('/index/index/car')}"><img class="stroke_border" style="margin-left: 20.5%;margin-top: 18%;width: 1.2rem;height: 1.2rem;" src="/static/index/images/nav_icon3.png"/></a></li>
  6. <li><a href="{:url('/index/index/center')}"><img class="stroke_border" style=" margin-left: 21%;margin-top: 15%;width: 1.2rem;height: 1.2rem;" src="/static/index/images/nav_icon4.png"/></a></li>
  7. <li class="show22">
  8. <img class="stroke_border" style="margin-left: -24%;margin-top: -22%;" src="/static/images/show_icon.png"></li>
  9. <li class="hide22">
  10. <img class="stroke_border" style="margin-left: -24%;margin-top: -22%;" src="/static/images/hidden_icon.png">
  11. </li>
  12. </ul>
  13. </div>
  14. <style>
  15. .icon_group{
  16. position: fixed;
  17. right: 20px;
  18. bottom: 80px;
  19. z-index: 500;
  20. }
  21. .icon_group li{
  22. list-style: none;
  23. display: none;
  24. margin-top:20px;
  25. background: orangered;
  26. height: 30px;
  27. width: 30px;
  28. opacity: 0.8;
  29. border-radius: 50%;
  30. box-shadow: 0 0 1px 1px #666;
  31. }
  32. .icon_group img{
  33. }
  34. .icon_group .show22{
  35. display: block;
  36. }
  37. .show22{
  38. animation: 2s opacity2 0s infinite;
  39. -webkit-animation: 2s opacity2 0s infinite;
  40. -moz-animation: 2s opacity2 0s infinite;
  41. }
  42. @keyframes opacity2{
  43. 0%{opacity:0.1}
  44. 50%{opacity:.8;}
  45. 100%{opacity:0.1;}
  46. }
  47. @-webkit-keyframes opacity2{
  48. 0%{opacity:0.1}
  49. 50%{opacity:.8;}
  50. 100%{opacity:0.1;}
  51. }
  52. @-moz-keyframes opacity2{
  53. 0%{opacity:0.1}
  54. 50%{opacity:.8;}
  55. 100%{opacity:0.1;}
  56. }
  57. </style>
  58. <script>
  59. $('.show22').click(function(){
  60. $('.icon_group li').show();
  61. $('.icon_group .show22').hide();
  62. });
  63. $('.hide22').click(function(){
  64. $('.icon_group li').hide();
  65. $('.icon_group .show22').show();
  66. });
  67. </script>