css

iframe{
  width: 100%;
    border: none;
    overflow: hidden;
    margin-bottom: -4.5px;
    height: calc(100vh);
}

html

<iframe  src="链接"></iframe>

js

document.getElementById("frame的id").src="链接";