我对我的iframe有意见!如何使iframe的内容填充屏幕?
提前谢谢你。
图片:
<!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>Document</title>
</head>
<body>
<div>
<iframe src="http://octopi/webcam/?action=stream" style="position:absolute; width:100%; height:100%; overflow:hidden">
Your browser doesn't support iframes
</iframe>
</div>
</body>
</html>发布于 2022-09-24 15:00:27
<!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>Document</title>
</head>
<body>
<div>
<iframe src="https://www.youtube.com/embed/qL-ry_tz6V0" style="width:100%; height:100vh; overflow:hidden">
Your browser doesn't support iframes
</iframe>
</div>
</body>
</html>
您可以使用这个:高度:100 You
https://stackoverflow.com/questions/73838011
复制相似问题