Skip to content

Commit

Permalink
代码兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
weipxiu committed Nov 2, 2020
1 parent de53167 commit 5201b95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Binary file modified Art_Blog.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions dist/Art_Blog/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@

<script>
var win_width = 375;
var deviation = document.querySelectorAll(".continar,.os-headertop");
var setFontSize = function() {
win_width = window.innerWidth;
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) || win_width < 1200) {
Expand All @@ -75,9 +76,8 @@
pro = 100
}
document.documentElement.style.setProperty("font-size", pro + "px");
// document.documentElement.style.setProperty("transition", "font-size 0.15s");
} else {
documen.querySelectorAll(".continar,.os-headertop").style.transform = "translateX(0)"
} else if(deviation.length) {
deviation[0].style.transform = "translateX(0)";
}
}
setFontSize();
Expand Down
6 changes: 3 additions & 3 deletions src/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@

<script>
var win_width = 375;
var deviation = document.querySelectorAll(".continar,.os-headertop");
var setFontSize = function() {
win_width = window.innerWidth;
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) || win_width < 1200) {
Expand All @@ -75,9 +76,8 @@
pro = 100
}
document.documentElement.style.setProperty("font-size", pro + "px");
// document.documentElement.style.setProperty("transition", "font-size 0.15s");
} else {
documen.querySelectorAll(".continar,.os-headertop").style.transform = "translateX(0)"
} else if(deviation.length) {
deviation[0].style.transform = "translateX(0)";
}
}
setFontSize();
Expand Down

0 comments on commit 5201b95

Please sign in to comment.