仅指定对象/嵌入元素的宽度
我有以下代码:
<object width="1000" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param id="FileNameParam" runat="server" name="src" />
<param name="controller" value="true" />
<embed id="EmbedObj" runat="server" width="1000" autoplay="false" controller="true" scale="aspect" pluginspage="http://www.apple.com/quicktime/download/" type="video/quicktime" />
</object>
由于没有为此元素设置 height
属性,我希望视频填充 width
和 height
> 与此成比例(就像 img
元素一样)。
相反,元素的宽度为 1000px
,但实际播放器(视频和工具栏)的宽度为 100px * 150px
。
这是为什么呢?
如何让视频填充宽度,并且高度成比例?
I have the following code:
<object width="1000" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param id="FileNameParam" runat="server" name="src" />
<param name="controller" value="true" />
<embed id="EmbedObj" runat="server" width="1000" autoplay="false" controller="true" scale="aspect" pluginspage="http://www.apple.com/quicktime/download/" type="video/quicktime" />
</object>
As there is no height
attribute set for this element, I was expecting the video to fill the width
, and the height
to be proportion to this (just like an img
element).
But instead, the width of the element 1000px
, but the actual player (the video and the toolbar) are 100px * 150px
.
Why is this?
How can I get the video to fill the width, and the height to be proportional?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否注意到,您自己将宽度设置为 1000?当我尝试不设置时,一切都很好..
Have you noticed, that you yourself have set the width to be 1000? When i tried with no setting, it was just fine..