1

加载的所有视频对象的宽度设置为 1200,高度设置为 720,我将如何更改它?

前任:

<iframe src="https://player.vimeo.com/video/155086124?badge=0&autopause=0&player_id=0" width="1280" height="720" frameborder="0"  webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

有没有办法覆盖高度和宽度,或者在抓取它们后直接编辑 api 对象?

4

1 回答 1

2

您可以通过 css 覆盖宽度和高度:

iframe {
    width: 640px;
    height: 360px;
}
于 2016-02-18T08:24:04.067 回答