[英]letter-spacing does not work on mobile browsers only desktop
I'm using sizes in "REM" and to my surprise the letter-spacing is not working in mobile browsers, Android and iOS. 我在“ REM”中使用尺寸,令我惊讶的是字母间距在移动浏览器,Android和iOS中不起作用。 Desktop Work Fine.
桌面工作正常。
CSS 的CSS
#header{
position: relative;
text-align: center;
overflow: hidden;
height: initial;
}
#header h1{
position: absolute;
font-size: 12rem;
right: 3rem;
margin: 0;
text-shadow: 0 4px #570b0b;
letter-spacing: -0.7rem; /* Work Only Desktop */
}
desktop: 桌面:
mobile: 移动:
Try word-spacing
...though I always use ems: 尝试
word-spacing
...尽管我总是使用ems:
#header h1{
position: absolute;
font-size: 12rem;
right: 3rem;
margin: 0;
text-shadow: 0 4px #570b0b;
letter-spacing: -0.7rem; /* Work Only Desktop */
word-spacing: -0.7rem;
}
*UPDATE : *更新 :
I see your using a webfont check this and see if its useful: 我看到您使用的是webfont,请检查一下是否有用:
Webkit, letter-spacing issues with webfonts Webkit,Webfonts的字母间距问题
The only other answer for you is: 您唯一的其他答案是:
Change REMs to EMs and test 将REM更改为EM并进行测试
Web font - make sure you have svg last 网络字体-确保最后有svg
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.