css - Safari 字体粗细问题,文字太粗

标签 css safari

当我应用 font-weight:bold 样式时,与其他浏览器相比,Safari 中的字体外观太粗了。我按照某些网站的建议尝试了以下 css,但它仍然相同。

text-shadow: #000000 0 0 0px;

文字渲染截图:

Chrome
enter image description here

Safari
enter image description here

这是我的 CSS 声明:

p {

margin: 8px 5px 0 15px; 
color:#D8D2CE; 
font-size:11pt;  
letter-spacing:-1px; 
font-weight: bold;  
font-family: LektonRegular;  
}

@font-face {
font-family: 'LektonRegular';
src: url('myfonts/lekton-regular-webfont.eot');
src: url('myfonts/lekton-regular-webfont.eot?#iefix') format('embedded-opentype'),
     url('myfonts/lekton-regular-webfont.woff') format('woff'),
     url(myfonts/lekton-regular-webfont.ttf)  format('truetype'),
     url('myfonts/lekton-regular-webfont.svg#LektonRegular') format('svg');
font-weight: normal;
font-style: normal;

}

如何解决这个问题?

最佳答案

使用-webkit-font-smoothing: antialiased;

文本阴影技巧不再有效。

关于css - Safari 字体粗细问题,文字太粗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9450706/

相关文章:

jquery - 如何在 Bootstrap 工具提示上添加动画?

python - 使用 py-appscript 访问 URL 时在 Mac Dock 中弹出 Python 应用程序

javascript - Safari 损坏的滚动

css - Safari 输入文本忽略顶部填充

jquery - 通过 html、css、jquery 对输入文本框进行电源登录

jquery - 无法在 Bootstrap 3 中获得带有图标效果的输入

html - 在不影响按钮的情况下更改 Bootstrap 导航栏不透明度

html - .svg 中的 <g> 元素不会在 :hover (css) 上放大

iphone - 如何防止 MobileSafari/UIWebView 中的键盘自动完成?

javascript - Safari 滚动故障