HTML代码中的音频元素但不可见

时间:2015-10-22 13:29:48

标签: html angularjs html5 audio html5-audio

当我在sourcecode / html中添加audio-tag时,它将无法在浏览器中显示。

When I manually add the html in an existing HTML-page, the audio-element will not be shown. When I add some text with for example the strong-element, it will appear as expected.

在我的情况下,我使用Angular.js动态加载数据后添加音频元素。根据Chrome / Firefox中的元素检查器, 位于源代码中,但是audio-element is not be visible

将音频元素加载到静态页面时,该元素将可见。

是否可以动态添加音频/视频元素?

1 个答案:

答案 0 :(得分:1)

也许如果你把控制="控制"在音频标签中,您将看到控件