<audio> 的自定义 CSS标签? [英] Custom CSS for <audio> tag?

查看:33
本文介绍了<audio> 的自定义 CSS标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个实现 HTML5 音频标签的音乐播放器网络应用程序,但是希望它在浏览器中看起来一致 - 是否可以定义我自己的自定义 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?

推荐答案

目前没有任何方法可以使用 CSS 来设置 HTML5 播放器的样式.相反,您可以不使用 control 属性,并使用 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.

这篇关于&lt;audio&gt; 的自定义 CSS标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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