Using jQuery and <audio>
How can one interact with an <audio>
element using jQuery, spe开发者_开发知识库cifically to hide only the "seeking" part of an <audio>
element?
I don't think the seeking part can be hidden by using plain HTML.
If your <audio>
tag does not have the "controls" attribute (or, I think if the attribute value is false
), then no controls are shown. The HTML5 Boilerplate CSS hides audio elements without controls:
audio:not([controls]) { display: none; }
You shouldn't need JavaScript/jQuery at all.
精彩评论