📄 iframetest_doc.shtml
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<title>浮动对联测试页面——有DOCTYPE声明</title>
<style type="text/css">
<!--
body {
background:url(http://voice.qq.com/love/images/page_bg.gif);
font-family: "Verdana";
font-size: 12px;
margin: 0;
}
.fontred {color: #F00}
-->
</style>
</head>
<body>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#00CCFF">
<tr>
<td height="200" align="center" valign="middle"><br><strong>页面内容区域</strong><br />
<br />
<span class="fontred"><strong>注:</strong>onload字段中的数值“200”为设置的Iframe最低高度值!</span><br />
<br />
<a href="shortpage.htm" target="content">Iframe显示短页面</a> <a href="longpage.htm" target="content">Iframe显示长页面</a></td>
</tr>
</table>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#00CCFF">
<tr>
<td align="center" valign="top"><iframe src="shortpage.htm" name="content" id="content" allowtransparency="true" align="default" marginwidth=0 marginheight=0 frameborder=0 scrolling=no height="200" width="500" onload="this.height=0;var fdh=(this.Document?this.Document.body.scrollHeight:this.contentDocument.body.offsetHeight);this.height=(fdh>200?fdh:200)//code by Tencent.nokersang">This message is only visible to older browsers.</iframe></td>
</tr>
</table>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#00CCFF">
<tr>
<td align="center"><script language="JavaScript" src="http://sms.qq.com/js_css/copyright_js/inc_foot_black.js"></script></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -