如何摆脱边框的IErame的iframe [英] How to get rid of border for an Iframe in IE8
本文介绍了如何摆脱边框的IErame的iframe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建一个对话框与iframe里面,问题是边框在IE8中显示,这在任何其他浏览器中完美。
I am creating a dialog with an iframe inside, the problem is that the border keeps showing in IE8, this works perfectly in any other browser.
这是什么我试过,我也尝试过border:none
This is what I have tried, I also tried border:none
$(d.dialog).find('#MyCoolDialogInner').html('<iframe src="/apex/EscalationForm?id={!Case.Id}" height="495" width="380" marginheight="0" marginwidth="0" frameborder="0"/>');
提前感谢
推荐答案
添加frameBorder属性(注意大写字母'B')。
Add the frameBorder attribute (note the capital ‘B’).
所以它看起来像:
<iframe frameBorder="0">Browser not compatible.</iframe>
这篇关于如何摆脱边框的IErame的iframe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文