English 中文(简体)
你们如何躲藏超5号音频控制?
原标题:How do you hide HTML5 Audio controls?

我怎么能掩盖超文本5的录音浏览器具体控制? I m 制作umb形图像,代表每个轨道和Javad成形/pa。

Thanks!

传真:

<audio class="thumbnail" id="paparazzi" controls="none">
    <source src="song.ogg" type="audio/ogg" />
    <source src="../audio/fernando_garibay_paparazzisnlmix.mp3" type="audio/mpeg" />
    Your browser does not support HTML5 audio.
</audio>
最佳回答

管制属性是一种 b。 这意味着,如果具体指明,控制是真实的,如果没有具体指明,控制是虚假的。

就有效性而言,如果你想要实行控制,你可以具体说明这些方式:

<audio controls>
<audio controls="controls">
<audio controls="">
问题回答

Don t specify the controls attribute at all, this should stop it from showing (I got this after a 5 second google, don t quote me on it).

超文本5视频——节目显示/示范控制

 var audio = document.getElementById( audioFile );
    audio.controls = false;



    <audio  id="audioFile" width="100%" height="auto" controls>
              <source src="xyz.mp3" type="audio/mpeg">
              </audio>




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签