提交 9dea0971 作者: 翁进城

修改适配方案

上级 37dd3f27
...@@ -51,7 +51,7 @@ type Props = { ...@@ -51,7 +51,7 @@ type Props = {
export default function LayoutView(props: Props) { export default function LayoutView(props: Props) {
const router = useRouter() const router = useRouter()
return ( return (
<Space direction="vertical" style={{ width: "100%" }} size={[0, 48]}> <Space direction="vertical" style={{ minWidth: "100%" }} size={[0, 48]}>
<Layout <Layout
style={Object.assign( style={Object.assign(
{ minHeight: "100vh", backgroundColor: "#F8F8F8" }, { minHeight: "100vh", backgroundColor: "#F8F8F8" },
......
...@@ -16,7 +16,7 @@ export default function App({ Component, pageProps }: AppProps) { ...@@ -16,7 +16,7 @@ export default function App({ Component, pageProps }: AppProps) {
window.messageApi = messageApi; window.messageApi = messageApi;
//@ts-ignore //@ts-ignore
window.onresize = function(){ window.onresize = function(){
window.document.querySelector('html')!.style.fontSize = (window.innerWidth / 1920) + 'PX'; // window.document.querySelector('html')!.style.fontSize = (window.innerWidth / 1920) + 'PX';
} }
}, []); }, []);
......
@import "./reset.scss"; @import "./reset.scss";
body { body {
background-color: rgba(239, 241, 244, 1); background-color: rgb(248, 248, 248)
} }
body::-webkit-scrollbar {
width: 0;
}
//页面基础属性 //页面基础属性
.page { .page {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论