简体   繁体   English

外部iframe更改大小

[英]External iframe change size

Please take a look at the first video (iframe) here Is it posible to somehow change width and height so it would look like other videos? 请在此处观看第一个视频(iframe)是否可以通过某种方式更改宽度和高度,使其看起来像其他视频一样?

在此处输入图片说明

The only way to reposition iframe and hide other parts. 重新定位iframe并隐藏其他部分的唯一方法。

add below CSS to iframe: 在iframe中添加以下CSS:

margin: -60px 0 0 -127px;
width: 500px;
height: 299px;

and add overflow:hidden; 并添加溢出:隐藏; to container div which has latestPostOtherVideo class. 到具有LatestPostOtherVideo类的容器div。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM