简体   繁体   中英

Web page is coming too large if user's system font size is increased (i.e. font-size: 150% as recommended by the windows)

I have created a web page using 14px as body font size. It is rendering properly in my system (windows font size set to 100%) but when someone else , whose windows font size is set to (150%) - as recommended by Windows, Web page is coming too large(everything is enlarged). Is there any way to resize (font scale) the page or manage the page so that content will come properly.

Try to use different font-scaling methods - such as em which relies on the container element (the body in your case). To my knowledge, this should alter the size of the font depending on the system font size, resolution etc.. Good luck.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM