一、iframe元素

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        ul{
            list-style: none;
        }
    </style>
</head>
<body>
    <table rowspan="4" border="1">
       <tr>
           <td>
                <ul><!--alt属性作用是当img无法被网页识别时,以纯文字的形式进行显示-->
                    <li><a href="http://www.jd.com" target="myframe"><img src="杨贵妃.png" alt="京东" width="150px" height="150px"></a></li>
                    <li><a href="http://www.163.com" target="myframe"><img src="王昭君.png" alt="网易" width="150px" height="150px"></a></li>
                    <li><a href="http://www.taobao.com " target="myframe"><img src="貂蝉.png" alt="淘宝" width="150px" height="150px"></a></li>
                    <li><a href="http://www.sina.com" target="myframe"><img src="西施.png" alt="新浪" width="150px" height="150px"></a></li>
                </ul>
           </td>
           <td width="600px" height="600px"><!--frameborder为0时表示无边框,为1时表示有边框-->
               <iframe src="http://www.baidu.com" frameborder="1" width="870px" height="600" name="myframe">    <!--相关网页的打开,均会在iframe中打开-->
</iframe>
           </td>
       </tr>
    </table>
</body>
</html>

二、效果展示

Html5 1.3 iframe元素使用

相关文章:

  • 2022-01-09
  • 2021-09-21
  • 2021-10-02
  • 2021-11-02
  • 2022-12-23
猜你喜欢
  • 2021-05-22
  • 2021-08-14
  • 2022-12-23
  • 2021-09-22
  • 2021-06-02
  • 2022-02-08
  • 2022-12-23
相关资源
相似解决方案