11、iframe内联框架

11、iframe内联框架

iframe就是为了实现在一个网页中嵌套另外一个网页的效果

<iframe src="path" name="mainFrame">iframe>

哔哩哔哩分享的iframe内联框架

<iframe src="//player.bilibili.com/player.html?aid=55631961&bvid=BV1x4411V75C&cid=97257967&p=11" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> iframe>

示例

DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>内敛框架学习title>
head>
<body>

<iframe src="//player.bilibili.com/player.html?aid=55631961&bvid=BV1x4411V75C&cid=97257967&p=11"
        scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true">
iframe>


<iframe src="https://www.baidu.com" frameborder="0" width="1000px" height="800px">iframe>


<iframe src="" frameborder="0" name="hello">iframe>
<a href="图像标签.html" target="hello">点击跳转a>
body>

你可能感兴趣的:(HTML,前端)