0
我正在開發一個項目,並在IE7上遇到了一些麻煩。邊距在IE7中的iframe中無法正常工作?
我有一個iframe,佔用整個頁面,並加載另一個頁面。切下來,它看起來是這樣的:
<html>
<head>
<title>Corporate Directory</title>
</head>
<body scroll="no" style="margin: 0;">
<iframe id="corpdir" height="100%" width="100%" frameborder="0" src="http://fullpath.to/corporate/directory" name="parent_frame">
</body>
</html>
要http://fullpath.to/corporate/directory在IE7的偉大工程,並有與渲染完全沒有問題。但是當它像上面那樣加載到iframe中時,有些元素會被推到左邊。所有這些元素都有「margin-left」的定義,但它似乎被忽略了。並非所有有餘裕的元素都被推倒,只有少數。我看不出有什麼共同之處,我可以想象它會做到這一點。
(請不要問我爲什麼幾乎被迫加載我們的Web應用程序以全屏幕的iframe只要接受這就是它是相當enterprisey和移動致謝。)