javascript当中iframe的用法

2.iframe

马克-to-win:frame在frameset中比较死板,iframe在div中可以在绝对的任何位置。
例 2.2.1(example1.html)
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
<div style="position:absolute;top: 20px; left:20px;">
    <iframe src="iframe2.html" id="tag" name="tag"
            width="250" height="100" scrolling="yes" frameborder="1">
    </iframe>
</div>
这有一行文本
<div style="position:absolute;top: 20px; left:300px;">
    <iframe src="iframe3.html" id="test3"
            width="450" height="300" scrolling="no" frameborder="1">
    </iframe>
</div>
<div style="position:absolute;top: 300px; left:200px;">
    <iframe src="iframe4.html" id="test3"
            width="450"  height="300" scrolling="no" frameborder="0">
    </iframe>
</div>
</body>
</html>

iframe2.html
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body style="">
<table width="50" height="20">
    <tr>
        <td>1</td>
    </tr>
    <tr>
        <td>2</td>
    </tr>
    <tr>
        <td>2</td>
    </tr>    <tr>
    <td>2</td>

更多内容请见原文,文章转载自:https://blog.csdn.net/qq_43650923/article/details/103046222

上一篇:SRTM全球90米、200米、450米3种规格DEM分享


下一篇:c# .Net重试机制