CSS iframe问题在IE 8 [英] CSS iframe problem in IE 8

查看:115
本文介绍了CSS iframe问题在IE 8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个完全符合 http://esolar.ca/calculator 的网页

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

但是当我将它嵌入到iframe中时, http://esolar.ca/how-to-profit-from-microfit/microfit-income-calculator/

But when I embed it into an iframe at http://esolar.ca/how-to-profit-from-microfit/microfit-income-calculator/

Internet Explorer 8中的请求评估按钮离左侧太远。

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?

推荐答案

iFrame在IE中溢出。将宽度更改为584像素为我修复了它。

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

有些事情可以减少这些问题:

Some things to reduce these kinds of problems:


  1. 使用 DOCTYPE 避免在IE中触发怪癖模式。 EG:

  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">


  • 使用CSS重置可减少跨浏览器的差异。 这是一个好的

    如果其他所有操作失败,请使用条件注释以调整IE CSS。

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

    这篇关于CSS iframe问题在IE 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆