App.vue 842 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <div id="app">
  3. <transition name="fade">
  4. <router-view/>
  5. </transition>
  6. </div>
  7. </template>
  8. <style>
  9. #app {
  10. position: absolute;
  11. top: 0;
  12. left: 0;
  13. right: 0;
  14. bottom: 0;
  15. width: 100%;
  16. height: 100%;
  17. overflow-y: hidden;
  18. }
  19. ul, li {
  20. list-style: none;
  21. padding: 0;
  22. }
  23. s, i, em {
  24. text-decoration: none;
  25. font-style: normal;
  26. }
  27. /*叹号问题*/
  28. .mu-warning-text-color {
  29. float: left;
  30. }
  31. </style>
  32. <script>
  33. window.onload = function() {
  34. document.addEventListener('touchstart', function(event) {
  35. if (event.touches.length > 1) {
  36. event.preventDefault()
  37. }
  38. })
  39. document.addEventListener('gesturestart', function(event) {
  40. event.preventDefault()
  41. })
  42. }
  43. </script>