Emulating a mobile screen size through an iframe

后端 未结 3 1442
孤独总比滥情好
孤独总比滥情好 2021-02-13 23:09

Just a random thought, What if I wanted to showcase a responsive webdesign not by resizing the browser window, but actually loading the responsive site in an IFRAME having the s

3条回答
  •  鱼传尺愫
    2021-02-13 23:18

    You could use the HTML property of iframe seamless and it's going to render on the width that you provide, like this for an iPad:

    Also if you wanna use it in XHTML documents, because attribute minimization is forbidden you will need to define it as