是否可以在html5中更改音频播放器的大小

sam*_*ly1 8 html5 html5-audio

如果html5中的音频播放器使用音频标签生成,是否有可能更改大小.

xav*_*ard 16

<audio> 可以像任何其他HTML元素一样设置样式.

要增加宽度,只需使用css属性width.

一些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>???
Run Code Online (Sandbox Code Playgroud)

和css:

#player {
 width: 100%;
}?
Run Code Online (Sandbox Code Playgroud)

问候