我在php中编写了以下代码,以便在点击它时显示弹出窗口
<a href="<?=url?>marketing/pop_up.php" onclick="return false;" fh="1200" class="popupForm" id="requestPopupD">Request Form</a>
和js代码
Ext.onReady(function() {
var hForm = '<div id="hiddenFormBG" class="lightboxBG" style="display:none;"></div><div id="hiddenForm" class="lightboxForm" style="display:none;"><iframe id="popup_iFrame" src="" frameborder="0" width="100%" height="" scrolling="no" allowTransparency="true"></iframe></div>';
// create hidden div so it doesn't have to live in the template
Ext.select('body').insertHtml('afterBegin', hForm);
// add class to all links with the class of popupForm. Will load the page from the href into the popup form.
Ext.select('a.popupForm').on('click', function() {
var newForm = new LightBoxForm('hiddenForm', 'hiddenFormBG', Ext.get(this).getAttribute('href'), Ext.get(this).getAttribute('fh'), Ext.get(this).getAttribute('fw'));
newForm.show();
});
});
它在Chrome和Mozilla中正常工作,但在IE中,表单不会完全显示,只显示部分内容。那么问题是什么以及如何解决这个问题