前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >专栏 >javascript当中iframe的用法

javascript当中iframe的用法

作者头像
马克java社区
修改2021-01-19 10:36:26
修改2021-01-19 10:36:26
6860
举报
文章被收录于专栏:java大数据java大数据

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="BACKGROUND-COLOR:red;"> <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

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档