0

我启动了一个脚本,它开始为 600px x 600px。我现在希望将脚本更改为 % 而不是 px 这是我目前正在使用的代码

    config.width = (typeof config.width === "undefined") ? 600 : config.width;
    config.height = (typeof config.height === "undefined") ? 600 : config.height;

我如何将 600 更改为 100%,如果我将其更改为 100%,我将找不到资源。

有任何想法吗?

4

0 回答 0