縮放比

_clai發表於2024-04-08
const _dpr = devicePixelRatio;

window.addEventListener('resize', () => {
  document.documentElement.style.scale = _dpr / devicePixelRatio
})

相關文章