<!DOCTYPE html>
<html lang="en">
<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>测试二</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://www.bing.com"></iframe>
</div>
</body>
</html>
iframe内嵌网页宽度自适应样式设置
猜你喜欢
转载自blog.csdn.net/a973685825/article/details/78468726
今日推荐
周排行