开发者

CSS iframe problem in IE 8

I have a page that looks perfectly at http://esolar.ca/calculator

But when I embed it into an iframe at http://esolar.ca/how-to-profit-from-microfit/micr开发者_开发问答ofit-income-calculator/

The Request An Assessment button in Internet Explorer 8 is too far to the left. How do I make the contents of the iframe appear the same after it's been iframed?


The iFrame is overflowing in IE. Changing the width to 584px "fixes" it for me.

Some things to reduce these kinds of problems:

  1. Use a DOCTYPE to avoid triggering quirks mode in IE. EG:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
    
  2. Use a CSS reset to reduce cross-browser differences. Here's a good one.

  3. If all else fails, use Conditional Comments to tweak IE CSS.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜