开发者

Formatting good in FireFox, bad in IE.... help

I am a newb for sure. I 开发者_开发百科have been developing in the firefox, and just barely checked in IE. Someone please help me out. Don't know where I went wrong. Thanks!

www.clgproperty.com


  1. "Develop your site using Firefox or Opera. Then test it in IE and Chrome
  2. Don't do inline styling. Use css files.
  3. Continuously check that your design works in these 4 major browsers

Firefox is the best browser for developing websites. Why? Because you can use the FireBug plugin that helps you analyse your html output code and debug javascripts.

Ok, this is all my opinion, but it works for me :)


This is one of the many issues with programming and designing websites. Different browsers render CSS differently (Some are more standards compliant than others). Internet Explorer is notorious for being terrible at rendering CSS.

Your only option is to rethink the design and create a new one that works in both browsers from the get-go, or to use Conditional Comments to include specific CSS for a specific browser, such as:

<!--[if IE 6]>
    Special instructions for IE 6 here
<![endif]-->


Start with a strict doctype.

Add this to top of your page (there should be nothing else in front of it, even no whitespace):

<!doctype html>

This way IE will behave according the w3 standards like as the other (decent and real) browsers. This must remove the most of the webdev pains, including the IE box model bug.

As second step, make use of the w3 validator. This isn't the holy grail, but this should spot on the most of the common problems. When fixing w3 validator problems, do it step by step and retest. Most of the subsequent errors are just "sub-errors" caused by one of the earlier errors.

Good luck. And indeed, welcome at the webdev world :)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜