add cursor:指向音频元素的指针 [英] add cursor: pointer to audio element
问题描述
有一个快速:我如何添加一个光标样式到我的< audio>
控件?当我通过css添加它们时,光标只显示在控件周围而不是控件本身。
got a quick one: how do I add a cursor style to my <audio>
controls? When I add them via css the cursor only displays around the controls and not on the controls themselves.
这里有一些代码:
<audio class="_audio" src="http://www.somewebsite.co/assets/AudioSample-JOBS.mp3" controls="controls" autoplay="autoplay" preload="auto"></audio>
注意:元素是通过javascript在onclick上创建的,但这不应该起作用。 。
Of note: the element is created onclick via javascript, but that shouldn't come into play...
推荐答案
很抱歉,您无法设定html媒体控制项。
你可以做的是制作自己的控件。如果您有兴趣,请点击以下链接:
http ://www.adobe.com/devnet/html5/articles/html5-multimedia-pt3.html
I'm sorry to say, but you can't style html media controls. What you can do is to make your own controls. If you're interested here's a good link: http://www.adobe.com/devnet/html5/articles/html5-multimedia-pt3.html
这篇关于add cursor:指向音频元素的指针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!