当前位置:网站首页>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]
边栏推荐
- 06 15 10 20 神秘代码,等你破译
- Introduction to Wireshark capturing RTP load TS stream (UDP multicast)
- 【接口教程】EasyCVR如何通过接口设置平台级联?
- Exécuteur - shutdown, shutdown Now, awaittermination details and actual Fighting
- 项目实训10——对特定数据库的备份
- 一 组工人合作完成某一部件的装配工序所需的时间(单位:分钟)分别如下:
- 我们对产业互联网的认识,还是困囿于互联网式的平台和中心的逻辑之中
- SQL查询优化原理实例分析
- 关于idea中src下 无法new一个package
- Sealem Finance - a new decentralized financial platform based on Web3
猜你喜欢

Html+php+mysql login registration page

【Flutter 问题系列第 6 篇】如何在 Flutter 中实现列表消息的滚动效果

【接口教程】EasyCVR如何通过接口设置平台级联?

Sealem Finance - a new decentralized financial platform based on Web3

Vscode common plug-ins and configurations

关于idea中src下 无法new一个package

Model Workshop

Auto. JS Pro development environment configuration

Project training 11 - regular backup of database
![[QPSK if] Verilog design of QPSK IF signal generation module based on FPGA](/img/7d/b021790f1fde266ff9aa360261d581.png)
[QPSK if] Verilog design of QPSK IF signal generation module based on FPGA
随机推荐
Laravel8 enables alicloud file upload
About the college entrance examination
Electronic Society C language level 1 7. Draw rectangle
盲盒商城APP系统开发的软件特点和盲盒功能介绍
集度夏一平:不是所有事都向李彦宏汇报,靠产品跟小米华为竞争
执行Oracle的SQL语句报错【ORA-00904: “CREATETIME“: 标识符无效】、【ORA-00913: 值过多】解决办法
Ribbon负载均衡策略
启牛的证券是哪个证券公司的呢?安全吗?
Optimize code to remove if else
28岁自学编程会不会太晚了?靠谱吗?
1.打开R程序,使用 apply 函数计算1到12按先后次序每隔3个数一组的和。即,计算1+4+7+10=?2+5+8+11=?,3+6+9+12=?
Software features and functions of the blind box mall app system development
一文带你了解J.U.C的FutureTask、Fork/Join框架和BlockingQueue
Vscode common plug-ins and configurations
Executor - Shutdown、ShutdownNow、awaitTermination 詳解與實戰
Icml2022 | revoir la traduction vocale de bout en bout du texte à partir de zéro
Vulnhub practice DC-1 target
Basic SQL statement - insert
MySQL相关-0416
DC4 of vulnhub