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

    xiaoxiao2021-03-25  63

    要做到如下效果:

    <!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元素当作表格的一个元素镶嵌进入即可。

    转载请注明原文地址: https://ju.6miu.com/read-34140.html

    最新回复(0)