Can I zoom into a web page like IE or Firefox do, using programming?

后端 未结 3 2094
天命终不由人
天命终不由人 2020-12-10 22:54

Simple - I have a layout that is 800 by 600. When I press Ctrl and +, it zooms in and looks wonderful.

I want to know if there\'s a CSS/Javascript way to do the same

3条回答
  •  死守一世寂寞
    2020-12-10 23:03

    There is a zoom CSS property, but it is part of CSS3 and is most likely not widely supported. By setting this on the body element using JavaScript you can zoom the entire page.

    I would agree with the sentiments of the answers to the question you linked to though in that it should be up to the user to choose their own zoom settings. If your site is too big/small to see, it indicates a problem with your site design.

提交回复
热议问题