Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图将比例保持在 16:9,但并非我所有的视频都是 1920x1080。两个是 - 1920 x 1012 和 1000 x 416。当我尝试将它们嵌入到 html 文件中时 - 图像会失真(额外的黑框空间或被切断)。
如果您的某些源视频不是 16:9 纵横比,但您希望嵌入式 Vimeo 播放器的大小保持 16:9 的比例,您将看到信箱效果或一些失真。
您可以更改嵌入代码中的width和height属性iframe以调整播放器本身的大小以满足您的需求,但是通过使用不同的参数,Vimeo 似乎会保留原始尺寸并在适当的地方添加黑条。
width
height
iframe