Strategy for Fixing Layout Bugs in IE6?

前端 未结 12 1572
别跟我提以往
别跟我提以往 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 08:43

    The box model is usually the culprit. Basically what this means is that any div you are trying to position and use unsupported CSS with will cause this problem.

    You may find it happens if you are using min-{width,height} or max-{width,height}.

    this provides a great reference for checking compadibility with different versions.

    http://www.aptana.com/reference/html/api/CSS.index.html

    0 讨论(0)
  • 2021-01-05 08:53

    I use Rafel Lima's Browser Selector when I need to tweak differences between IE/Standards browsers. It greatly reduces using "hacks" in your HTML to solve common problems.

    You can target CSS statements for different browsers, or even different versions of browsers (Hello IE 6). It's very simple to implement, but requires the user has JavaScript turned on (most do).

    .thing { ....}

    .ie .thing { ....}

    .ie6 .thing { ....}

    0 讨论(0)
  • 2021-01-05 08:54

    http://www.positioniseverything.net/ will certainly address your problem.

    It provides comprehensive and in-depth descriptions of browser bugs along with options to work around them. A must read, in my opinion,

    0 讨论(0)
  • 2021-01-05 08:54

    We had a floating div issue that was only evident in a particular version of IE6. It was fixed by downloading the latest service pack.

    0 讨论(0)
  • 2021-01-05 08:55

    One good way to start learning about how IE happens to be mangling the page is to turn on red borders on different elements with CSS (border: 1px solid red;). This will immediately tell you whether it's a margin problem or a padding problem, how wide the element really is, etc.

    0 讨论(0)
  • 2021-01-05 08:56

    how do you define layout bug? the most frustrating layout implementation (i don't know if this should be defined as bug) in IE is we need to always specify style="display:inline" in the HTML <form> tag so that a blank line won't appear to disturb the form layout.

    0 讨论(0)
提交回复
热议问题