Commit e4f0cfd1 authored by 张伯涛's avatar 张伯涛

样式调整

parent be79be81
...@@ -26,7 +26,7 @@ html { ...@@ -26,7 +26,7 @@ html {
#app { #app {
height: 100%; height: 100%;
overflow-x: hidden; overflow-x: hidden;
min-width: 768px; //min-width: 768px;
} }
*, *,
......
...@@ -8,7 +8,7 @@ function setRem() { ...@@ -8,7 +8,7 @@ function setRem() {
// 设置页面根节点字体大小(“Math.min(scale, 2)” 指最高放大比例为2,可根据实际业务需求调整) // 设置页面根节点字体大小(“Math.min(scale, 2)” 指最高放大比例为2,可根据实际业务需求调整)
// document.documentElement.style.fontSize = baseSize * Math.min(scale, 2) + 'px' // document.documentElement.style.fontSize = baseSize * Math.min(scale, 2) + 'px'
// 设置页面根节点字体大小, 字体大小最小为12 // 设置页面根节点字体大小, 字体大小最小为12
const fontSize = (baseSize * Math.min(scale, 2)) > 14 ? (baseSize * Math.min(scale, 2)) : 14 const fontSize = (baseSize * Math.min(scale, 2)) > 16 ? (baseSize * Math.min(scale, 2)) : 16
document.documentElement.style.fontSize = fontSize + 'px' document.documentElement.style.fontSize = fontSize + 'px'
} }
// 初始化 // 初始化
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment