如何将引入的iframe页面缩小,适应当前页面

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
  <title>Document</title>
  <style>
    html, body {
      width: 100%;
      height: 100%;
    }
    * {
      margin: 0;
      padding: 0;
    }
    .bar {
      height: 20px;
      background-color: #ccc;
    }
    .iframe{
      width: 980px;
      height: calc((100% - 20px) * 2.82);
      transform: scale(0.382);
      transform-origin: 0 0;
      /*width: 100%;
      height: 100%;*/
    }
  </style>
</head>
<body>
  <div class="bar">bbbbbbbbbb</div>
  <iframe src="http://www.zjzwfw.gov.cn/" class="iframe" frameborder="0"></iframe>
</body>
</html>

 

    原文作者:xiaxiaoxian
    原文地址: https://blog.csdn.net/xiaxiaoxian/article/details/84641941
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞