对接烟台app的h5页面
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

69 lines
1.7 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<script>
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
CSS.supports('top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<title></title>
<!--preload-links-->
<!--app-context-->
</head>
<body>
<div id="app"><!--app-html--></div>
<script type="module" src="/main.js"></script>
</body>
<style>
/* 针对所有浏览器 */
body::-webkit-scrollbar,
body::-webkit-scrollbar-thumb {
display: none;
/* 隐藏滚动条 */
width: 0;
/* 防止滚动条占位 */
height: 0;
/* 防止滚动条占位 */
}
/* 针对Firefox */
body {
scrollbar-width: none;
/* Firefox专用,隐藏滚动条 */
-ms-overflow-style: none;
/* IE和Edge兼容 */
}
/* 针对不支持滚动条隐藏的老旧浏览器,可以使用以下技巧隐藏滚动条 */
body {
/* 隐藏水平滚动条 */
overflow-x: hidden;
/* 用伪元素模拟滚动内容高度,避免内容溢出时出现滚动条 */
/* 注意调整数值以适应实际项目中的最大内容高度 */
padding-right: 15px;
box-sizing: content-box;
position: relative;
&::after {
content: "";
display: block;
height: 10000px;
/* 足够大的高度 */
width: 15px;
/* 与padding-right值相同,用于抵消 */
position: absolute;
top: 0;
right: 0;
pointer-events: none;
/* 避免影响其他元素的点击事件 */
}
}
</style>
</html>