简体   繁体   English

为什么Chrome,Firefox和IE上的文本看起来比Safari模糊?

[英]Why does text on Chrome, Firefox, and IE look fuzzier than Safari?

I've begun writing a new website and ran into this issue, the text on Safari looks very crisp and clean, while text on other browsers looks fuzzy. 我已经开始编写一个新网站并遇到了这个问题,Safari上的文本看起来非常清晰明了,而其他浏览器上的文本却看起来很模糊。 I've updated all of my browsers and can't find the reason why.Also, I'm running Yosemite as my OS. 我已经更新了所有浏览器,但找不到原因。此外,我正在将优胜美地作为操作系统。

Here's a sample screenshot: http://gyazo.com/11818058c27469040e53650ea5c35e78 Safari on the Left (Sharp), Chrome on the right (Fuzzy) 这是一个示例屏幕截图: http : //gyazo.com/11818058c27469040e53650ea5c35e78左侧的Safari浏览器(Sharp),右侧的Chrome浏览器(Fuzzy)

Here is my HTML: 这是我的HTML:

<html>
<link rel="stylesheet" type="text/css" href="../Project v2/css/style.css">
<head><title>Company</title></head>
<body>
<nav>
<ul>
<li>about us</li>
<li>Who we are</li>
<li>Contact us</li>
</ul>
</nav>
</body>
</html>

and my CSS: 和我的CSS:

body{
    background: url("/Users/Project/Desktop/Project v2/Assets/bg.jpg") no-repeat center center fixed;
    background-size: cover;
    margin: 0%;
}
nav ul{
    list-style: none;
}
nav{
    text-align: center;
    margin-top:200px;
    margin-right: 50px;
    font-size: 20px;
    color: white;
    font-weight: 5;

}

Do not use 5 in your font-weight,its not a standard value here. 请勿在字体粗细中使用5,此处不是标准值。

 font-weight:500; 


Try another fonts from google fonts or adobe edge web fonts. 尝试使用Google字体或Adobe Edge Web字体中的其他字体。 If font kerning is possibly wrong on rendering engine it might also be a case here. 如果在渲染引擎上字体字距调整可能是错误的,那么这里也可能是这种情况。 And remember to use either full font stack(.eot and woff) or web service. 并记住要使用完整的字体堆栈(.eot和woff)或Web服务。 Another is to use em's or rem's as main units.They are more useful when a zoomed content goes responsive. 另一种方法是使用em或rem作为主要单位。当缩放的内容变得敏感时,它们会更加有用。

暂无
暂无

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

相关问题 为什么在Firefox,Chrome或Safari上却不能在IE上运行呢? - Why is this not working on Firefox, Chrome or Safari but on IE? 在IE中Javascript执行速度比Firefox,Safari和Chrome慢 - In IE Javascript execution speed is slower than Firefox, Safari and Chrome 为什么我的Javascript / jQuery可以在Chrome和Safari中运行,但不能在Firefox,IE9或Opera中运行? - Why does my Javascript/jQuery work in Chrome and Safari but not firefox, IE9, or Opera? 为什么从位置哈希中选择下拉列表在Chrome上不起作用,但在Firefox,IE或Safari上不起作用? - Why does dropdown list selection from a location hash work on Chrome, but not Firefox, IE, or Safari? 为什么我的网站可以在某些Chrome,Opera和Safari中使用,但不适用于FireFox或IE? - Why does my website work in some Chrome, Opera, and Safari but not FireFox or IE? 为什么drawImage在Safari中的执行速度比Chrome或Firefox快得多? - Why does drawImage perform so much faster in Safari than Chrome or Firefox? Javascript函数不适用于Firefox,但适用于Chrome,Safari,IE和Edge - Javascript function does not work in firefox but does in chrome, safari, IE and edge 为什么这适用于 IE,但不适用于 Firefox 或 Chrome? - Why does this work for IE but not for Firefox or Chrome? 为什么此功能适用于Firefox,但不适用于Chrome或IE? - Why does this work with Firefox but not Chrome or IE? 为什么jQuery的.each在Safari中比Firefox / Chrome慢得多? - Why is jQuery's .each drastically slower in Safari than Firefox/Chrome?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM