实现iframe的100%高度和宽度

 


body {
margin: 0; /* Reset default margin */
}
iframe {
display: block; /* iframes are inline by default */
background: #000;
border: none; /* Reset default border */
height: 100vh; /* Viewport-relative units */
width: 100vw;
}

 


原文链接:https://blog.csdn.net/muzizongheng/article/details/85257051

 

你可能感兴趣的:(前端)