This commit is contained in:
shaoyongjun 2024-11-09 00:35:41 +08:00
parent 44c00e5f61
commit f744a0832e

View File

@ -31,6 +31,11 @@ define(function (require, exports, module) {
curClientW = designWidth;
}
if (curClientW >= designWidth) {
ctx.MyRoot().style.width = "60%";
} else {
ctx.MyRoot().style.width = "100%";
}
let dpr = getDpr();
//set 1rem = curClientW / designWidth (支持响应式)