|
|
@@ -23,6 +23,28 @@
|
|
|
})
|
|
|
</script>
|
|
|
<link rel="stylesheet" href="<%= BASE_URL %>static/index.css" />
|
|
|
+ <style>
|
|
|
+ /* #ifdef H5 */
|
|
|
+ /* 在桌面浏览器中限制宽度为375px并居中显示 */
|
|
|
+ @media screen and (min-width: 375px) {
|
|
|
+ body {
|
|
|
+ background-color: #f5f5f5;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: flex-start;
|
|
|
+ min-height: 100vh;
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+ }
|
|
|
+ .uni-app--maxwidth {
|
|
|
+ width: 400px;
|
|
|
+ min-height: 100vh;
|
|
|
+ background-color: #ffffff;
|
|
|
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /* #endif */
|
|
|
+ </style>
|
|
|
</head>
|
|
|
<body>
|
|
|
<!-- 该文件为 H5 平台的模板 HTML,并非应用入口,请勿直接运行此文件。 -->
|