Get meta viewport tag to work on desktop

前端 未结 1 1939
抹茶落季
抹茶落季 2021-01-07 15:34

I have created a script that enables the meta viewport tag on desktop. However I do not seem to be able to get the specified width from the viewport tag. I currently have th

相关标签:
1条回答
  • 2021-01-07 16:00

    Sorry guys... It turned out to be a typo! var wspec = viewportcontent[i].substring(6); had to be var wspec = viewportcontents[i].substring(6);. I have to remember to use better variable names!!!

    Working version here: http://codepen.io/anon/pen/GqoeYJ

    0 讨论(0)
提交回复
热议问题