Is it possible to resize an embedded .mov?

2019-04-11 09:22发布

I embed .mov clips that sometimes are bigger than the place where I show it, so I want to resize the clip. Have tried with width and height but that only changes the area to display it; it does not resize the actual movie.

Is it possible to resize the movie size? If yes, how?

2条回答
Lonely孤独者°
2楼-- · 2019-04-11 09:55

Yes, you need the scale attribute:

<embed src="sample.mov" width="200" height="240" scale="tofit">

There's a full reference for QuickTime video attributes here.

查看更多
男人必须洒脱
3楼-- · 2019-04-11 10:16

Sometimes the scale attribute doesn't work. It would help to place the embed element in an object element.

<object height="240" width="200"><embed src="sample.mov" height="240" width="200"/></object>

Make sure that the height and width value in the object element is the same as in the embed element.
      Good Luck

查看更多
登录 后发表回答