在 iframe或者框架中body的style中加入以下css代码就可以了 width: 50vw;height: 50vh;transform-origin: 0 0;transform: scale(2);