当前位置:网站首页>分享一个最近遇到的标签<iframe>
分享一个最近遇到的标签<iframe>
2022-04-22 12:25:00 【云墨-款哥的博客】
W3C给的官方定义
iframe 元素会创建包含另外一个文档的内联框架(即行内框架)。
W3C属性列表

前两天写项目时,遇到一个特别狗血的要求,就是在一个网页内部给出一个展示框,用来展示另外一个网页
下面是一个小demo


这里是具体代码块
<!-- * @Description: 微信 biankuan1996 * @version: 1.0 * @Company: 云墨 * @Author: biankuan * @Date: 2021-05-26 16:43:22 * @LastEditors: Please set LastEditors * @LastEditTime: 2021-05-27 12:28:23 * @FilePath: \H5+CSS3\05-26\10iframe.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>iframe</title>
<style> iframe{
width: 400px; height: 500px; /* background-color: red; */ } </style>
</head>
<body>
<!-- img href iframe 标签用于在当前网页当中开辟一个新的窗口 显示另外一个网页 行内块标签 src 跳转网页的地址 frameborder 0 没有 1 有边框 -->
<iframe src="./06导航.html" frameborder="1" name="myframe" ></iframe>
<!-- target 目标 写为iframe 标签 name属性对应的值 a标签指定 href的 链接会跳转到 对应的iframe里面 -->
<a href="http://baidu.com" target="myframe">百度一下 </a>
</body>
</html>
版权声明
本文为[云墨-款哥的博客]所创,转载请带上原文链接,感谢
https://blog.csdn.net/m0_56026872/article/details/117325838
边栏推荐
猜你喜欢

基于STM32F103C8T6+ESP8266温室大棚远程监控系统

Application case sharing of isolated integrated current sensor ch704 which can measure current above 50A
![【深入理解TcaplusDB技术】更替列表指定位置数据接口说明——[List表]](/img/ed/cccd5dee09d2f0a3e6c788bd265b36.png)
【深入理解TcaplusDB技术】更替列表指定位置数据接口说明——[List表]

LeetCode 617、合并二叉树

電工第二講

Low frequency (LF) RFID intelligent terminal

.NET宝藏API之:OutputFormatter,格式化输出对象

【并发编程055】如下守护线程是否会执行finally模块中的代码?
![【深入理解TcaplusDB技术】扫描数据接口说明——[List表]](/img/ed/cccd5dee09d2f0a3e6c788bd265b36.png)
【深入理解TcaplusDB技术】扫描数据接口说明——[List表]
![[in depth understanding of tcallusdb technology] description of data interface for batch deletion of specified location in list - [list table]](/img/ed/cccd5dee09d2f0a3e6c788bd265b36.png)
[in depth understanding of tcallusdb technology] description of data interface for batch deletion of specified location in list - [list table]
随机推荐
ROS2学习笔记(五)从turtlesim学习ROS2参数
LeetCode 695、岛屿的最大面积
Difference between redis setex and set
NER简单综述
[logical fallacies in life] controlling violence with violence and suppressing rationality
Set the sliding wheel in vscode to change the font size
[in depth understanding of tcallusdb technology] example code - asynchronous call interface
Design and implementation of house leasing system based on J2EE Rar (paper + project source code + database file)
[concurrent programming 051] implementation principle of volatile memory semantics
ROS2学习笔记(十)从turtlesim学习ROS2的工作空间
电工第二讲
Huawei Hongmeng joined the mobile phone system camp in 2019. How do you view the development of Hongmeng in the past three years?
ROS2学习笔记(六)从turtlesim学习ROS2动作
Some problems in the use of zuul
【并发编程047】缓存锁定性能优于总线锁定, 为什么不淘汰总线锁定?
Esp32-cam usage history
【并发编程050】内存屏障的种类以及说明?
C语言%7.2d、%-7d、%7.2f、%0.2f的含义
【并发编程049】说说重排序的分类?
What do the nouns a record, MX record and CNAME record mean?