设计网页看在这两个IE6和IE8浏览器好 [英] designing web pages to look good in both IE6 and IE8 browsers

查看:118
本文介绍了设计网页看在这两个IE6和IE8浏览器好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ASP.NET应用程序中,如何设计以这样一种方式的页面,他们在两个IE6和IE8浏览器中正确显示?我想尽量减少我需要的,如果有任何一般性指引,将在这两种浏览器的工作做了CSS的工作。我可能仍然需要在这里和那里调整,但我想,以减少大部分工作。请让我知道如果有任何这样的准则。
先谢谢了。

in ASP.NET application, how to design the pages in such a way that they are displayed properly in both IE6 and IE8 browsers? I would like to minimise the CSS work that I need to do if there are any general guidelines to follow which will work in both browsers. I may still need to tweak here and there, but I want to reduce bulk of the work. Please let me know if there are any such guidelines. Thanks in advance.

推荐答案

通过确保你的页面的基本布局是工作跨浏览器的启动。这可以说是相当的技巧,但好消息是,其他人已经做了繁重的为您服务。只是谷歌一栏,三栏式,圣杯或任何你布局的目标并你会发现很多的描述如何实现它在任何你想要的浏览器的文章。

Start by making sure that basic layout of your page is working cross-browser. This can be quite trick, but the good news is that other people already did the heavy lifting for you. Just google for "one column", "three column", "holy grail" or whatever layout your are aiming for and you will find plenty of articles describing how to achieve it in any browser you want.

开始因为在那里,我的建议是code为IE8并在需要时添加的黑客对IE6。这应该保持黑客在最低限度,因为CSS,在IE8工作的一般也适用于浏览器,Firefox和其他浏览器得体

Starting for there, my suggestion is to code for IE8 and add hacks for IE6 when required. This should keep the hacks at a minimum since CSS that works in IE8 usually also works for Chrome, Firefox and the other decent browser.

不要试图让所有的浏览器网站像素完美,这只会推动你疯了。让上了年纪的浏览器您的网站优雅降级。如果网站没有圆角或渐变反正IE6用户不会在意。

Don't try to make your site pixel perfect across all browser, this will only drive you insane. Let your website "degrade gracefully" on the older browser. IE6 users won't care if the site don't have rounded corners or gradients anyway.

使用JavaScript在旧的浏览器来模拟现代CSS功能也是一个不错的主意。但是我不建议使用ieX.js脚本。这些脚本需要太多的CPU来运行,并且可以使你的网站没有反应,如果你的HTML是沉重的。

Using javascript to simulate modern CSS features in older browser is also a good idea. But I don't recommend using the ieX.js scripts. These scripts require too much CPU to run and can make your site unresponsive if your HTML is heavy.

这篇关于设计网页看在这两个IE6和IE8浏览器好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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