简体   繁体   English

如果用户的系统字体大小增加,网页会变得太大(即字体大小:窗口建议的150%)

[英]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. 我创建了一个使用14px作为正文字体大小的网页。 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). 它在我的系统中正确呈现(Windows字体大小设置为100%),但是当其他人的Windows字体大小设置为(150%)时 - 按照Windows的建议,网页太大(一切都放大了)。 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). 尝试使用不同的字体缩放方法 - 例如em依赖于容器元素(在您的情况下是正文)。 To my knowledge, this should alter the size of the font depending on the system font size, resolution etc.. Good luck. 据我所知,这应该根据系统字体大小,分辨率等改变字体的大小。祝你好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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