App.vue 939 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. min-height: 100%;
  18. overflow-y: scroll;
  19. }
  20. ul, li {
  21. list-style: none;
  22. padding: 0;
  23. }
  24. s, i, em {
  25. text-decoration: none;
  26. font-style: normal;
  27. }
  28. /*叹号问题*/
  29. .mu-warning-text-color {
  30. float: left;
  31. }
  32. </style>
  33. <script>
  34. window.onload = function () {
  35. document.addEventListener('touchstart', function (event) {
  36. if (event.touches.length > 1) {
  37. event.preventDefault()
  38. }
  39. })
  40. document.addEventListener('gesturestart', function (event) {
  41. event.preventDefault()
  42. })
  43. }
  44. </script>