当前位置:网站首页>iframe框架自适应大小/全屏显示网页框架的方法
iframe框架自适应大小/全屏显示网页框架的方法
2022-06-10 22:17:00 【于飞SEO】
简介
全页面全屏显示iframe,并且随网页和显示设备自适应,框架中的目标网页支持自适应才可以实现自适应。

实例代码
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta id="viewport" name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title>自适应iframe框架</title>
<style>
html,body,iframe{width: 100%;height: 100%;padding: 0;margin: 0}
#wrap{width: 100%;height: 100%;}
iframe{border: none;}
</style>
</head>
<body>
<div id="wrap">
<iframe src="http://ym.ws58.net"></iframe>
</div>
</body>
</html>本文部分内容来源于网络,转载请注明来源,如需投诉请联系我们[email protected]
边栏推荐
- redis列表list常用命令大全
- Clustered and non clustered indexes
- IP anti query domain name
- DependencyManagement 和 Dependencies
- Vscode common plug-ins and configurations
- What are the restrictions on opening futures accounts? Where is the safest?
- 可扩展到Max–MCU和MPU开发,使用相同的许可证
- 项目实训10——对特定数据库的备份
- Reptiles learn knowledge
- Flowable BPMN相关知识
猜你喜欢

爬虫学习知识

34. find the first and last positions of elements in the sorted array - binary search, double pointer

Native support for the first version of arm64! Microsoft win11/10 free tool set PowerToys 0.59 release

简单阻抗匹配电路及公式

laravel8 实现阿里云文件上传

执行Oracle的SQL语句报错【ORA-00904: “CREATETIME“: 标识符无效】、【ORA-00913: 值过多】解决办法

UE4 getting started with bone animation

mysql 表机制

样板小作坊

ICML2022 | 從零開始重新審視端到端的語音到文本翻譯
随机推荐
项目实训10——对特定数据库的备份
unity 代码为动画注册事件
关于String.format(String format, Object... args)
软件测试入门之软件测试的概念与过程(精辟内容)
普通网络摄像头的拉取方法
leetcode 130. Surrounded regions (medium)
Redis data structure
开中银证券账户安全吗?风险高吗?
联想首次详解混合云Lenovo xCloud五大优势,如何打造智能化数字底座
leetcode 130. Surrounded Regions 被围绕的区域(中等)
Sdn/nfv application in cloud data center
Our understanding of the industrial Internet is still trapped in the logic of an Internet like platform and center
200 c language words, please collect!
数据与信息资源共享平台(七)
Is there any risk in opening an account with BOC securities? Is it safe?
项目实训12——解析建表的SQL语句
【Flutter 问题系列第 6 篇】如何在 Flutter 中实现列表消息的滚动效果
Project training 10 - backup of specific databases
[论文分享] PATA: Fuzzing with Path Aware Taint Analysis
一文带你了解J.U.C的FutureTask、Fork/Join框架和BlockingQueue