Html 是否可以在 html5 中更改音频播放器的大小
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13535235/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 04:03:46 来源:igfitidea点击:
is it possible to change the size of audio player in html5
提问by samdonly1
Is there any possibility of changing the size if the audio player in html5 produced using audio tag.
如果 html5 中的音频播放器是使用音频标签制作的,是否有可能改变大小。
回答by xavier.seignard
<audio>
can be styled as any other html element.
<audio>
可以设置为任何其他 html 元素的样式。
To increase the width just use the css property width
.
要增加宽度,只需使用 css 属性width
。
Some html:
一些html:
<audio id="player"?controls autoplay>
??<source src="http://xseignard.github.com/webGLWebAudioAPI/sound/OGLikeCapone.ogg" type="audio/ogg">
??Your browser does not support the audio tag.
</audio>???
And the css:
和CSS:
#player {
?width: 100%;
}?
Regards
问候