温馨提示:您的每一次转载,体现了我写此文的意义!!!烦请您在转载时注明出处http://www.blogjava.net/sxyx2008/谢谢合作!!!

雪山飞鹄

温馨提示:您的每一次转载,体现了我写此文的意义!!!烦请您在转载时注明出处http://www.blogjava.net/sxyx2008/谢谢合作!!!

BlogJava 首页 新随笔 联系 聚合 管理
  215 Posts :: 1 Stories :: 674 Comments :: 0 Trackbacks
<style type="text/css">         
html, body 
{ margin: 0; padding: 0; height: 100%; }                 
iframe 
{             
position
: absolute;             
top
: 0; 
left
: 0; 
width
: 100%; 
height
: 100%;             
border
: none; 
box-sizing
: border-box; 
-moz-box-sizing
: border-box; 
-webkit-box-sizing
: border-box;         
}     
</style> 

 <iframe src="http://www.google.com/"></iframe>
参考:http://stackoverflow.com/questions/1303729/iframe-100-height-inside-body-with-padding

posted on 2011-12-26 23:19 雪山飞鹄 阅读(253) 评论(0)  编辑  收藏 所属分类: js

只有注册用户登录后才能发表评论。


网站导航: