Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
breast-feeding-ai-demo-web
Project
Project
Details
Activity
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
朱国瑞
breast-feeding-ai-demo-web
Commits
44e4368c
Commit
44e4368c
authored
Jun 01, 2022
by
“2957361351@qq.com”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格式化代码
parent
3ccf1348
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
evicePixelRatio.js
src/utils/evicePixelRatio.js
+1
-7
No files found.
src/utils/evicePixelRatio.js
View file @
44e4368c
...
...
@@ -30,13 +30,7 @@ class DevicePixelRatio {
t
.
_bodyScale
()
}
_bodyScale
()
{
let
flag
=
false
;
var
agent
=
navigator
.
userAgent
.
toLowerCase
();
if
(
agent
.
indexOf
(
"windows"
)
>=
0
)
{
flag
=
true
;
}
if
(
flag
)
{}
var
scale
=
window
.
screen
.
width
/
1920
*
1.25
;
// 分母——设计稿的尺寸
var
scale
=
window
.
screen
.
width
/
1920
*
1.25
;
// 分母——设计稿的尺寸
document
.
getElementById
(
'main'
).
style
.
zoom
=
scale
;
//放大缩小相应倍数
}
//监听页面缩放
...
...
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