Strategy for Fixing Layout Bugs in IE6?

前端 未结 12 1758
别跟我提以往
别跟我提以往 2021-01-05 08:02

Generally, what\'s the best way to tackle a layout bug in IE6? What are the most common bugs or problems that one should look for when trying to figure out why your page sud

12条回答
  •  失恋的感觉
    2021-01-05 09:03

    I have a simple strategy that works every time.

    First, I develop the site using commonly accepted CSS to look good in Safari and Firefox 3. See w3schools.com for details on browser support.

    Then, I go into IE6 and IE7 and alter the CSS using conditional includes.

    This is hack free and lets you handle different browsers (IE6 and IE7 have separate issues).

    Most of the issues you'll find come from unsupported features in IE (like min-width), errors in the box model (IE adds unseen extra padding (3px) to some boxes), or positioning issues. Go for those first as they are often the issue.

提交回复
热议问题