[英]Why some font-sizes rendered larger in mobile browsers?
My website's homepage have some h and div elements.我网站的主页有一些 h 和 div 元素。 The first h2 tag's and div tag's font sizes are with px.
第一个 h2 标签和 div 标签的字体大小使用 px。 I have "-webkit-text-size-adjust: none;"
我有“-webkit-text-size-adjust: none;” spesification in html and body tags also.
在 html 和 body 标签中也有说明。 However the first tags's font size's rendered bigger in mobile browsers.
然而,第一个标签的字体大小在移动浏览器中呈现得更大。 Why?
为什么? How can I solve this problem?
我怎么解决这个问题?
css codes: css代码:
h2 {
font-size: 16px;
}
#main h2 {
font-size: 16px;
font-weight: normal;
margin: 0;
}
.introdiv {
font-size: 12px;
line-height: 1.3;
margin: 0;
padding: 0 10px 24px 3px;
}
尝试将其添加到 HTML 的 head 标记中。
<meta name="viewport" content="width=device-width, initial-scale=1.0">
text-size-adjust: none;
, if you must force them not to do that. ,如果你必须强迫他们不要那样做。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.