网站渲染操作系统是否依赖? [英] Is the website rendering OS dependent?

查看:123
本文介绍了网站渲染操作系统是否依赖?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个非常简单的网站,只有一个网页,但是我需要一个页面才能在所有浏览器中看起来都一样。现在,出于测试目的,我在Windows 7机器(FF,Chrome,Opera,Safari,Netscape等)上安装了一堆Web浏览器,并在进行了一些标记更改之后,在所有浏览器。

I'm developing a very simple web site, with only one web page, but i need the one single page to look as it should in all the browsers. Now, for testing purposes, i have installed a bunch of web browsers on my windows 7 machine (FF, Chrome, Opera, Safari, Netscape etc.) and after doing some markup changes, i've got the same looking webpage on all the browsers.

现在的问题是,浏览器呈现网页的方式是否取决于运行该浏览器的操作系统?我应该安装linux(或其他操作系统)并再次进行测试,否则就可以了?

Now the question is, does "the way" a browser renders a web-page depend on the operating system the browser is running on? Should I install linux (or other os) and test again or it will just be fine?

推荐答案

您肯定应该在测试站点跨平台,其他人可能会不同意,但是呈现方式肯定会有所不同。

You should definitely be testing sites cross-platform, others may disagree, but the rendering is definitely different.

除了基本呈现方式外,您还可能会丢失字体,使用相同的替代字体名称,在不同的平台/配置以及其他功能上启用/禁用了抗锯齿功能。

In addition to base-rendering, you may also be missing fonts, have alternate fonts with the same name, have anti-aliasing enabled/disabled on different platforms/configurations and much more.

要确切地理解我的意思,请在带有Firefox 5的Windows 7基本安装上进行,带有Firefox 5的OSX和带有Firefox 5的Linux,当使用字体 Arial或 Verdana时,即使这些字体在所有平台上都存在,您也会清楚地看到差异。

To see exactly what I mean, on a base install of Windows 7 with Firefox 5, OSX with Firefox 5 and Linux with Firefox 5, when using the font 'Arial' or 'Verdana', you will clearly see the differences, even if those fonts do exist on all platforms.

在上面看到的差异之上,即使您使用的是非绝对值(地狱,即使您使用的是诸如 px 可能会出局!),因此,最好的做法是跨站点检查您的网站在我看来,它与检查跨浏览器一样重要。

On top of the differences you'd see above, even your positioning could be out if you're using non-absolute values (hell, even if you are using absolute values such as px it could be out!), so it's always best practice to check your sites cross-platform, it's as important as checking cross-browser, in my opinion.

这篇关于网站渲染操作系统是否依赖?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆