Change the control colors in the HTML5 audio tag [duplicate]

倖福魔咒の 提交于 2020-01-14 10:47:52

问题


Is it possible to change the 'play', 'pause', and 'volume' colors in the HTML5 audio tag.

They have a very dark color when using Firefox and they make the player look disabled.


回答1:


Answer: No. Currently, you cannot change the color of the controls of the HTML5 audio tag. If you enable the controls attribute, the appearance of the 'play', 'pause', and 'volume' will be dependent on the browser.

With more work though, you can use JavaScript to create your own audio player interface that connects to the audio element's API.

Your question is a more focused version of what was asked here:

Is it possible to style html5 audio tag?

And here are some articles on how to create a unique audio player:

http://serversideup.net/style-the-html-5-audio-element/

http://webdesign.tutsplus.com/tutorials/create-a-customized-html5-audio-player--webdesign-7081



来源:https://stackoverflow.com/questions/24367263/change-the-control-colors-in-the-html5-audio-tag

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!