juqery实现浮动框架ifram高度自适应浏览器
<script type="text/javascript">
$(document).ready(function(){
var iframeHeight = function () {
var _height = $(window).height() - 34;
$('#content').height(_height);
}
window.onresize = iframeHeight;
$(function () {
iframeHeight();
});
});
</script>
<iframe border="0" id="content" src="demo.html" frameborder="0" height="100%" width="100%"></iframe>
上一篇:JavaScript打印和预览等
下一篇:jquery滑入滑出函数实例
讨论数量:0