iOS 3.2 webapp 中出现乱码
我为 iOS 设备编写的网络应用程序遇到问题。它仅在 iOS 3.x 中体现出来。
以下是我遇到的问题:
计算样式为:
-webkit-appearance: none;
-webkit-background-clip: padding-box;
-webkit-border-horizontal-spacing: 2px;
-webkit-border-vertical-spacing: 2px;
-webkit-box-shadow: rgba(0, 0, 0, 0.199219) 0px 1px 4px 0px inset;
-webkit-rtl-ordering: logical;
-webkit-user-select: text;
background-attachment: scroll;
background-clip: padding-box;
background-color: #F0F0F0;
background-image: none;
background-origin: padding-box;
border-bottom-color: #B3B3B3;
border-bottom-left-radius: 9px;
border-bottom-right-radius: 9px;
border-bottom-style: solid;
border-bottom-width: 1px;
border-collapse: collapse;
border-left-color: #B3B3B3;
border-left-style: solid;
border-left-width: 1px;
border-right-color: #B3B3B3;
border-right-style: solid;
border-right-width: 1px;
border-top-color: #B3B3B3;
border-top-left-radius: 9px;
border-top-right-radius: 9px;
border-top-style: solid;
border-top-width: 1px;
color: #333;
cursor: auto;
display: inline-block;
font-family: Helvetica, Arial, sans-serif;
font-size: 16px;
font-style: normal;
font-variant: normal;
font-weight: normal;
height: 22px;
letter-spacing: normal;
line-height: 22px;
margin-bottom: 2px;
margin-left: 0px;
margin-right: 0px;
margin-top: 2px;
padding-bottom: 6px;
padding-left: 6px;
padding-right: 6px;
padding-top: 6px;
text-align: auto;
text-indent: 0px;
text-shadow: white 0px 1px 0px;
text-transform: none;
width: 378px;
word-spacing: 0px;
这是表行内的普通输入字段。
对发生的事情有什么想法吗?
I'm having an issue with a webapp I'm writing for iOS devices. It only manifests itself in iOS 3.x.
Below is the problem I'm having:
The computed style is:
-webkit-appearance: none;
-webkit-background-clip: padding-box;
-webkit-border-horizontal-spacing: 2px;
-webkit-border-vertical-spacing: 2px;
-webkit-box-shadow: rgba(0, 0, 0, 0.199219) 0px 1px 4px 0px inset;
-webkit-rtl-ordering: logical;
-webkit-user-select: text;
background-attachment: scroll;
background-clip: padding-box;
background-color: #F0F0F0;
background-image: none;
background-origin: padding-box;
border-bottom-color: #B3B3B3;
border-bottom-left-radius: 9px;
border-bottom-right-radius: 9px;
border-bottom-style: solid;
border-bottom-width: 1px;
border-collapse: collapse;
border-left-color: #B3B3B3;
border-left-style: solid;
border-left-width: 1px;
border-right-color: #B3B3B3;
border-right-style: solid;
border-right-width: 1px;
border-top-color: #B3B3B3;
border-top-left-radius: 9px;
border-top-right-radius: 9px;
border-top-style: solid;
border-top-width: 1px;
color: #333;
cursor: auto;
display: inline-block;
font-family: Helvetica, Arial, sans-serif;
font-size: 16px;
font-style: normal;
font-variant: normal;
font-weight: normal;
height: 22px;
letter-spacing: normal;
line-height: 22px;
margin-bottom: 2px;
margin-left: 0px;
margin-right: 0px;
margin-top: 2px;
padding-bottom: 6px;
padding-left: 6px;
padding-right: 6px;
padding-top: 6px;
text-align: auto;
text-indent: 0px;
text-shadow: white 0px 1px 0px;
text-transform: none;
width: 378px;
word-spacing: 0px;
This is a normal input field inside a table row.
Any ideas of what's happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Safari 使用子像素渲染来“放大”文本,从 Snow Leopard 开始,他们的标准“修复”不再有效。对于 Safari 4/Snow Leopard,请使用 text-shadow,对于其他所有内容,请将 -webkit-font-smoothing 放在 body 元素上,如下所示。
正文{-webkit-font-smoothing:抗锯齿}
Safari uses sub-pixel rendering to "bulk up" text, as of Snow Leopard, their standard "fix" no longer worked. For Safari 4/Snow Leopard, use text-shadow, and for everything else, place -webkit-font-smoothing on the body element, like so.
body{-webkit-font-smoothing:antialiased}
也许您可以通过使用
第一个阴影函数作为凝结文本的“背景”来修复它。
Maybe you can fix it by using
The first shadow functions as a "background" for the clotted text.