更改HTML5音频标签中的控件颜色 [英] Change the control colors in the HTML5 audio tag

查看:841
本文介绍了更改HTML5音频标签中的控件颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以更改HTML5音频标签中的播放",暂停"和音量"颜色.

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

在使用Firefox时,它们的颜色非常深,使播放器看起来被禁用.

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

推荐答案

答案:否.当前,您不能更改HTML5音频标签的控件的颜色.如果启用控件属性,则播放",暂停"和音量"的外观将取决于浏览器.

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.

不过,通过进行更多工作,您可以使用JavaScript创建自己的音频播放器界面,该界面连接到音频元素的API.

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:

是否可以设置html5音频标签的样式?

以下是一些有关如何创建独特音频播放器的文章:

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

http://serversideup.net/style-the-html- 5音频元素/

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

这篇关于更改HTML5音频标签中的控件颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆