让 IE 表现得像 Firefox
我想知道... 当我们设计网站时...存在跨浏览器兼容性和浏览器与 HTML 不同的行为是一个问题...设计师必须检查他的设计并努力实现跨浏览器设计的一致性...
我们可以做一些事情吗在代码中添加一些库\脚本,以便一个浏览器像其他浏览器一样工作,所以这是一个简单的猜测,我希望 IE
表现得像 Firefox
...就像可用的脚本一样针对IE6的透明PNG问题...
i was wondering...
when we design websites... there are cross-browser compatibility and browsers different behavior to HTML is an issue... designer has to check his design and work for cross-browser design consistency....
can we do somthing about it like add some libraries\scripts to the code so that one browser bahaves like other, so this is an easy guess i want IEs
to behave like Firefox
... like scripts are available for IE6's Transparent PNG problem...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
jQuery 确实让这个任务变得更容易管理。我经常必须确认我的代码可以在所有主要浏览器的多个版本上运行。 (幸好不再是IE6)。 jQuery 团队针对所有这些浏览器进行了测试,并提供了一个框架来解决大多数脚本和事件处理差异。
您还应该使用 CSS 重置,它有助于将浏览器初始化为更兼容的版本状态
jQuery has certainly made the task a LOT more manageable. I regularly have to affirm my code works on several versions of ALL major browsers. (Fortunately no longer IE6). jQuery team tests against all these browsers and provides a framework that does much to take care of most scripting and event handling differences.
You should also be using a CSS reset that helps to initialize browsers to a more compatible state