Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_web_vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
91isoft_web_vue
Commits
e4f0cfd1
Commit
e4f0cfd1
authored
Feb 27, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式调整
parent
be79be81
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
index.scss
src/styles/index.scss
+1
-1
rem.js
src/utils/rem.js
+1
-1
No files found.
src/styles/index.scss
View file @
e4f0cfd1
...
@@ -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;
}
}
*,
*,
...
...
src/utils/rem.js
View file @
e4f0cfd1
...
@@ -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
))
>
1
4
?
(
baseSize
*
Math
.
min
(
scale
,
2
))
:
14
const
fontSize
=
(
baseSize
*
Math
.
min
(
scale
,
2
))
>
1
6
?
(
baseSize
*
Math
.
min
(
scale
,
2
))
:
16
document
.
documentElement
.
style
.
fontSize
=
fontSize
+
'px'
document
.
documentElement
.
style
.
fontSize
=
fontSize
+
'px'
}
}
// 初始化
// 初始化
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment