<body>
<div id="overflow" >
<div id="main" class="main2">
</div>
</div>
</body>
function f(){
var o = document.getElementById('overflow'),
m = document.getElementById('main');
var ow = o.clientWidth,
oh = o.clientHeight;
m.style.transform = 'scale('+ow/1600+','+oh/900+')';
}
mounted() {
window.onresize = () => {
return (() => {
f();
})();
};
window.onload = () => {
return (() => {
f();
})();
};
},