var fieldContainer = document.getElementById(‘fieldbox‘);
var resizeWorldMapContainer = function () {
var width=window.innerWidth;
var height=window.innerHeight;
var d=width*96/100
var h=height*67/100
fieldContainer.style.width =d+‘px‘;
fieldContainer.style.height = h+‘px‘;
};
时间: 2024-10-12 14:13:30