自定义CSS为&LT;音频&GT;标签? [英] Custom CSS for <audio> tag?
问题描述
我建立一个实现HTML5的音频标签的音乐播放器的Web应用程序,但希望它看起来跨浏览器一致的 - 它是可以定义自己的自定义CSS?怎么样?
I'm building a music player web application which implements the HTML5 audio tag, however would like it to look consistent across browsers - is it possible to define my own custom CSS? And how?
欢呼声
费拉
推荐答案
目前还不能任何方式样式HTML5 &LT;使用CSS
播放器;音频过夜。相反,你可以离开关控制
属性,使用Javascript实现自己的控制。如果你不希望实现所有你自己,我建议你使用现有的主题化的HTML5音频播放器,如 jPlayer
There is not currently any way to style HTML5 <audio>
players using CSS. Instead, you can leave off the control
attribute, and implement your own controls using Javascript. If you don't want to implement them all on your own, I'd recommend using an existing themeable HTML5 audio player, such as jPlayer.
这篇关于自定义CSS为&LT;音频&GT;标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!