我一直在使用下面提到的代码,它适用于我的Chrome,但不适用于我的IE9和Safari.
我搜索了解决方案,尽管我有各种供应商前缀,但这些结果令我感到困惑.
<div style="display: flex; flex-direction: row;">
<div></div>
<div></div>
</div>
Run Code Online (Sandbox Code Playgroud) 如何在显示屏中创建具有充足可用空间的新窗口.
function CreateWindow () {
chrome.app.window.create("Spreadsheet.html" , {
"bounds" : {
"width" : 500, // need full width and height
"height": 400
}
});
}
chrome.app.runtime.onLaunched.addListener(CreateWindow);
Run Code Online (Sandbox Code Playgroud)