您的位置:首页 > 其它

表格中的iframe实现打开多个网页

2017-04-04 22:25 169 查看
要做到如下效果:



<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<base target="_blank">
<title>框架</title>
</head>

<body>
<h1>Show a page with iframe</h1>
<table>
<tr>
<td>
<iframe width="600" height="300" frameborder="0" scrolling="yes"
src="http://www.sysu.edu.cn">
Your browser does not handles frames!
</iframe>
</td>
<td>
<iframe width="600" height="300" frameborder="0" scrolling="yes"
src="http://www.baidu.com">
Your browser does not handles frames!
</iframe>
</td>
</tr>
<tr>
<td>
<iframe width="600" height="300" frameborder="0" scrolling="yes"
src="http://www.runoob.com">
Your browser does not handles frames!
</iframe>
</td>
<td>
<iframe width="600" height="300" frameborder="0" scrolling="yes"
src="http://www.qq.com">
Your browser does not handles frames!
</iframe>
</td>
</tr>
<table>
</body>
</html>


主要是把一个iframe元素当作表格的一个元素镶嵌进入即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: