提交 83a5f2e3 authored 作者: lihuihui's avatar lihuihui

update

上级 ef82a811
......@@ -3,3 +3,13 @@
<router-view />
</div>
</template>
<script>
export default {
mounted() {
const pcyidong = /(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)
if (!pcyidong) {
document.body.style['max-width'] = '400px'
}
}
}
</script>
......@@ -4,8 +4,8 @@
}
html{
/* max-width: 400px; */
margin: 0 auto;
}
body {
background: #fff;
margin: 0 auto !important;
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论