0
我在IFrame上使用負邊距設置僅顯示源的特定部分。iFrame馬林底部不工作
我有這樣的代碼來切斷Iframe源代碼的頂部,左側和底部部分。雖然源的頂部和左側部分很好地修剪,但「底部邊緣」設置不會切斷源頁面的底部部分。
什麼問題出現在這裏的任何線索和建議,以解決它?由於
<div dir="ltr" style="width: 100%; height: 800px; overflow: hidden; display: block;">
<p dir="ltr">
<iframe height="800" scrolling="yes" src="http://localhost/testPage.html"
style="overflow: hidden; margin-top: -180px; margin-bottom: -180px; margin-left: -260px;"
width="100%">
</iframe>
</p>
</div>
分享代碼,請。 – azhpo 2014-12-03 12:47:13