我有一个html页面,我想在页面底部对齐一个iframe,使得iframe占据所有宽度,我无法在底部对齐iframe。请在底部找到iframe标记页面。
<html>
<body>
<p>The rest of the code has not been mentioned to reduce code overflow.</p>
<p>I want to align the iframe after a long page having no. of jquery , images etc.</p>
<iframe src ="bottom.html" width="100%" height="200" style="float:bottom" scrolling="no" frameborder="0">
<p>Your browser does not support iframes.</p>
</iframe>
</body>
</html>
答案 0 :(得分:1)
<iframe src="bottom.html" style="position:absolute; bottom:0px; height:200px; width:100%;" scrolling="no" frameborder="0">
对不起。试试吧。
答案 1 :(得分:0)
使用顶部标记代替底部标记。
<iframe src="bottom.html" style="position:absolute; top:450px; height:200px; width:100%;" scrolling="no" frameborder="0">