开发者

How to solve the problems that html page works well in firefox and chrome, but wrong with IE?

I meet a problem that my page works well in firefox and chrome(almost the same look and feel) but very bad in IE. It's time consuming to adjust the differences. Is there any research has been done already to tell the differenceS, or any automation tool to examine the uncompatibilities?

BTW: which tool you guys are using when debug开发者_JAVA技巧ging in IE(like firebug for IE)?


Your best starting point is to always use some kind of "reset mechanism" like Eric Meyer's CSS Reset or framework like HTML5 Boilerplate, they help in reducing differences between browsers (not all, but most of it). If this is not possible (project is already in finishing phase, etc.) you can always ask questions here, check Position Is Everything for description of bugs, Quirks Mode, SitePoint reference and various other sites (Google is your friend :)). Hope this helps.

There is "debugging" tool for IE - IE Developer Toolbar - but it's usefulness can't compare to that of Firebug, Dragonfly and such. IE8+ does have better support for debugging, though… There are some articles that suggest using Visual Studio, but I haven't tried it. Mostly it's just trial and error with IE :).


ie7-js is a JavaScript file that automatically fixes many Internet Explorer bugs for all versions. Works like magic.


For fast and better results in IE you can use CSS Hacks for adjusting the HTML elements.

For IE we have IE Developer AddOn

you can download it here : http://www.microsoft.com/downloads/en/details.aspx?FamilyID=95e06cbe-4940-4218-b75d-b8856fced535


Welcome to the tiresome world of IE.

IE8 has some version of developers tools, hit F12 on your keyboard and it will pop up. (not present in 6&7)

There are many documented bugs in IE, a simple Google Search would help you out better, but a lot cannot be accounted for until you have your site working in FF.

What most developers I know do is to make the site in FF, make small changes for Webkit browsers then go over to IE (not including 6) and debug.

In my experience there really is no way to tell what IE is going to mess up next, so you'll probably just have to deal with it as it happens.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜