【问题标题】:Change the width/height given of embed/html iframe from vimeo api objects从 vimeo api 对象更改 embed/html iframe 的宽度/高度
【发布时间】:2016-02-18 07:58:49
【问题描述】:

加载的所有视频对象的宽度设置为 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对象?

【问题讨论】:

    标签: html css angularjs vimeo-api vimeo-player


    【解决方案1】:

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

    iframe {
        width: 640px;
        height: 360px;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-02-01
      • 2017-07-13
      • 2013-08-17
      • 2016-06-07
      • 1970-01-01
      • 2016-07-17
      • 2014-12-11
      相关资源
      最近更新 更多