保持看的网站在IE,Chrome和Firefox一样 [英] keeping sites looking the same in IE, Chrome and Firefox

查看:131
本文介绍了保持看的网站在IE,Chrome和Firefox一样的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我最好的办法,以确保asp.net网站看起来相同的看法时,在IE,Chrome或Firefox?

Can anyone tell me the best way to ensure asp.net sites look the same when view in IE, Chrome or Firefox?

我刚刚完成其中一个在测试中似乎罚款在IE浏览器而不是其他2

I've just finished one which in testing seems fine in IE but not the other 2.

我没有使用CSS本网站作为其没那么大,我刚刚格式化的母版,因为我想它。

I have not used CSS on this site as its not that big, I just formatted the masterpage as I wanted it.

莫非是这个问题?

推荐答案

我一般是先code为Firefox。这使得匹配的东西在Chrome,Safari和IE9通常接近100%。然后,我通过和测试在IE 8和7小的调整通常是同一个CSS文件内提出。例如,IE7通常需要有一个容器的尺寸显式地设置,其中,最现代的浏览器不要求它与正确渲染的东西。

I usually code for Firefox first. That makes things match almost 100% in Chrome, Safari and IE9 usually. Then I go through and test in IE 8 and 7. Minor adjustments are typically made within the same CSS file. For example, IE7 usually needs to have dimensions of a container explicitly set, where most modern day browsers don't require it and render things properly.

在那些你需要专门的样式东西IE的一个或多个版本极少数情况下,使用条件的意见。这里是有条件的意见,以及如何针对特定的浏览器和版本一些很好的链接:

In those rare cases that you do need to style something specifically for one or more versions of IE, use conditional comments. Here are some good links on conditional comments and how to target specific browsers and versions:

<一个href=\"http://msdn.microsoft.com/en-us/library/ms537512%28v=vs.85%29.aspx\">http://msdn.microsoft.com/en-us/library/ms537512%28v=vs.85%29.aspx

http://www.quirksmode.org/css/condcom.html

这篇关于保持看的网站在IE,Chrome和Firefox一样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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