If the width
property is set to 100%, the video player will be responsive and scale up and down:
Notice that in the example above, the video player can be scaled up to be larger than its original size. A better solution, in many cases, will be to use the max-width
property instead.
If the max-width
property is set to 100%, the video player will scale down if it has to, but never scale up to be larger than its original size:
We want to add a video in our example web page. The video will be resized to always take up all the available space:
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!