仅指定对象/嵌入元素的宽度

发布于 2024-12-18 03:35:01 字数 760 浏览 4 评论 0原文

我有以下代码:

<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 属性,我希望视频填充 widthheight > 与此成比例(就像 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

随遇而安 2024-12-25 03:35:01

您是否注意到,您自己将宽度设置为 1000?当我尝试不设置时,一切都很好..

Have you noticed, that you yourself have set the width to be 1000? When i tried with no setting, it was just fine..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文