<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body style="overflow:hidden">
<div id="container" style="background-color: black;">
<p>hhhhhhh</p>
</div>
</body>
<script type="text/javascript">
var width = window.innerWidth;
var height = window.innerHeight;
var container = document.getElementById("container");
console.log(width);
console.log(height);
container.style.width=width+"px";
container.style.height = height+"px";
</script>
</html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body style="overflow:hidden">
<div id="container" style="background-color: black;">
<p>hhhhhhh</p>
</div>
</body>
<script type="text/javascript">
var width = window.innerWidth;
var height = window.innerHeight;
var container = document.getElementById("container");
console.log(width);
console.log(height);
container.style.width=width+"px";
container.style.height = height+"px";
</script>
</html>