开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜