How do you make a webpage change its width automatically?

后端 未结 8 1169
故里飘歌
故里飘歌 2021-01-23 00:26

In HTML, is there a way to make a webpage expand to the user\'s monitor? Like say I have a 15inch, but someone else has a 24 inch. The webpage would be small on their screen,

8条回答
  •  自闭症患者
    2021-01-23 00:56

    Unless you explicitly set the size yourself, a page will default to using the full width of a browser window.

    You might find Firefox's Web Developer plugin useful as it allows you to quickly change your browser's window to specific sizes so you can see how your layout looks at different sizes. https://addons.mozilla.org/en-US/firefox/addon/60

提交回复
热议问题