| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <template>
- <div id="app">
- <router-view />
- </div>
- </template>
- <script>
- export default {
- name: "App",
- components: {},
- computed: {},
- };
- </script>
- <style lang="less">
- #app {
- font-family: "Avenir", Helvetica, Arial, sans-serif;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- text-align: center;
- color: #2c3e50;
- font-size: 32 / @rem;
- }
- // 正常横屏样式
- @media all and (orientation: landscape),
- /** 伪竖屏*/all and (orientation: portrait) and (min-width: 600px) and (min-height: 800px) {
- // 横屏最大高度
- // height: 260 / @rem;
- // overflow-y: auto;
- #app {
- font-size: 16 / @rem;
- }
- }
- // ipad 横屏
- @media /** 伪竖屏*/all and (orientation: portrait) and (min-width: 600px) and (min-height: 800px),
- /**ipad伪横屏 */ all and (orientation: landscape) and (min-width: 800px) and (min-height: 600px),
- all and (min-device-aspect-ratio: 3/4) and (max-device-aspect-ratio: 4/3),
- all and (device-aspect-ratio: 4/3) {
- #app {
- font-size: 16 / @rem;
- }
- }
- </style>
|