flexible.js 273 B

12345678910
  1. ;function resetFontSize() {
  2. var designWidth = 750
  3. var width = window.innerWidth
  4. var currentFontSize = width / (designWidth / 100)
  5. document.documentElement.style.fontSize = currentFontSize + 'px'
  6. }
  7. window.onresize = function() {
  8. resetFontSize()
  9. };
  10. resetFontSize()