例如代码:
<embed id='lshfEmbed' src='/taohua.mp4' style='width: 400px; height: 310px;' autostart='0' loop='true' ></embed>
如果想在视频上面浮动一个div或者页面导航,这会被遮挡在下层,无法显示。
正确代码:
<embed id='lshfEmbed' src='/taohua.mp4' windowlessVideo="true" style='width: 400px; height: 310px;' autostart='0' loop='true' ></embed>
windowlessvideo属性加上即可:“是否无窗口视频”属性。
如为true,则设置成无窗口模式,视频可直接显示在你指定的区域,上面可以叠加文字或其他效果;
如为false,则显示完整的media player窗口;