utils.js

来自「架設ROSE私服必備之物 ROSE數據庫」· JavaScript 代码 · 共 21 行

JS
21
字号
  function resizeDialogToContent()
  {
    // resize window so there are no scrollbars visible
    var dw = window.dialogWidth;
    while (isNaN(dw))
    {
      dw = dw.substr(0,dw.length-1);
    }
    difw = dw - this.document.body.clientWidth;
    window.dialogWidth = this.document.body.scrollWidth+difw+'px';

    var dh = window.dialogHeight;
    while (isNaN(dh))
    {
      dh = dh.substr(0,dh.length-1);
    }
    difh = dh - this.document.body.clientHeight;
    window.dialogHeight = this.document.body.scrollHeight+difh+'px';
  }
  

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?