简体   繁体   中英

What are some CSS bugs in IE?

I've found some references to bugs or issues in IE's interpretation of CSS, but the information seems rather scattered. I'd like to have a pointer to a comprehensive overview, if such an overview exists.

edit: it's already something that Microsoft is willing to list IE's CSS problems (thanks mouviciel->sanchothefat), but they're not going to offer workarounds, obviously. So workarounds would be nice too.

Thanks

Check out Quirks Mode . It is a great resource for CSS compatibility across browsers.

I find the best policy to avoid pain is to follow these rules:

  1. Build in a more-compliant and developer-friendly browser like firefox first, test thoroughly in IE (and safari/chrome(webkit) and opera) later
  2. Use a strict doctype- avoid quirks mode, since quirks are by definition not standard
  3. Use a reset style sheet
  4. Use a javascript framework like jQuery or Prototype - they can hide some javascript and DOM incompatibilities.
  5. Use good semantic layout- it's more likely to degrade nicely for a mis-behaving browser
  6. Accept that it won't be perfect and don't sweat the really small variances

Follow those rules I don't have as many problems in the first place.

Me, I use the " Internet Explorer Exposed ". Very in-depth resource.

您可以通过查阅此SO问题找到一些答案。

For dropdownlists:

<select>
    <option value="1">1</option>
    ...
    <option value="N">N</option>
</select>

CSS border styles do not work:

If you'll try:

select
{
    border: solid 1px #0000ff;
}

nothing will happen.

Also a submit button will expand its width proportionally to the button text, until you give it the style:

input[type="submit"]
{
overflow:visible;
}

As well as many other funny things. :)

I swear by PositionIsEverything .

They maintain a list of bugs/oddities in most browsers. Check out their exhaustive list of Internet Explorer bugs , I hope you find it comprehensive enough.

quirksmode已经发布了,但我将添加On有布局 ,这解释了IE的许多奇怪的原因之一。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM