iframe高度宽度自适应兼容所有浏览器
来源:互联网 发布:重庆市数字图书馆软件 编辑:程序博客网 时间:2024/05/03 15:53
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>iframe</title><script src="js/1.3.2.js"></script><style type="text/css">*{ padding:0; margin:0;}html,body{ width:100%; height:100%; }.menu{ width:200px; height:100%; text-align:center;}.close{ display:none;}.bar{ width:5px; background:#317EF3; cursor:pointer;}.clum{ width:5px; height:100%; background:#317EF3;}.open{ width:5px; height:100%; background:#317EF3;}</style><script type="text/javascript">$(document).ready(function(){ $(".bar").click(function(){ $(this).toggleClass("open"); $(".menu").toggleClass("close"); });});<!-- //调整 PageContent 的高度 function SetCwinHeight(){ var iframeid=document.getElementById("iframeid"); //iframe id if (document.getElementById){ if (iframeid && !window.opera){ if (iframeid.contentDocument && iframeid.contentDocument.body.offsetHeight){ iframeid.height = iframeid.contentDocument.body.offsetHeight; }else if(iframeid.Document && iframeid.Document.body.scrollHeight){ iframeid.height = iframeid.Document.body.scrollHeight; } } } }//--> </script></head><body><table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" id="table"> <tr> <td class="menu">菜单</td> <td class="bar"><!--<div class="clum"></div>--></td> <td height="100%"><iframe id="iframeid" onload="Javascript:SetCwinHeight()" width="100%" height="100%" frameborder="0" src="http://www.baidu.com/"></iframe></td> </tr></table></body></html>
0 0
- iframe高度宽度自适应兼容所有浏览器
- iframe显示高度自适应兼容多浏览器
- iframe 自适应高度,兼容各浏览器
- iframe高度自适应及多浏览器兼容
- iframe自适应高度(兼容多种浏览器)
- iframe自适应高度(兼容多种浏览器)
- iframe自适应高度(兼容多种浏览器)
- iframe自适应高度(兼容多种浏览器)
- iframe自适应高度(兼容多种浏览器)
- Iframe 自适应高度宽度
- iframe高度宽度自适应
- IFrame 自动调整高度 兼容所有浏览器
- iframe内容自适应高度并兼容所有浏览器的最有效直接的方法
- JS兼容所有浏览器获取浏览器高度和宽度
- JavaScript设置IFrame高度自适应(兼容多浏览器)
- jquery iframe自适应高度代码(浏览器兼容)
- JavaScript设置IFrame高度自适应(兼容多浏览器)
- 兼容主流浏览器的 iframe 自适应高度(很实用)
- 32位的Web应用程序在64位的系统上运行
- VoltDB相关论文
- POJ 1661 Help Jimmy 最短路
- 第七周项目五求最大值
- android:mac本 JNI的编译及调用
- iframe高度宽度自适应兼容所有浏览器
- thinkphp3.2.2下对url的操作
- JS无法获取URL的参数
- mysq 慢查询
- Source Insight完美转换UTF-8 到 GB2312
- git服务器搭建(Ubuntu平台)
- Android开发之Mediaplayer状态转换图及音频焦点
- leetcode - Set Matrix Zeroes
- 构造函数