首页和library布局调整
This commit is contained in:
@@ -10,8 +10,8 @@ let flexible = (designWidth, maxWidth,minWidth) =>{
|
||||
if(width/height>1.98) width = height * 1.98;
|
||||
width > maxWidth && (width = maxWidth);
|
||||
width < minWidth && (width = minWidth);
|
||||
var rem = width * 10 / designWidth;
|
||||
// var rem = Math.round(width * 10 / designWidth);
|
||||
// var rem = width * 10 / designWidth;
|
||||
var rem = Math.round(width * 10 / designWidth);
|
||||
docEl.style.fontSize = rem+'px'
|
||||
remStyle.innerHTML = 'html{font-size:' + rem + 'px;}';
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const getMousePosition = (e,bor,dom) => {
|
||||
e.stopPropagation()
|
||||
e.preventDefault();
|
||||
if(bor){
|
||||
const touch = e.changedTouches[0];
|
||||
event = {
|
||||
|
||||
Reference in New Issue
Block a user