Home >Web Front-end >HTML Tutorial >html5 audio tag_html/css_WEB-ITnose

html5 audio tag_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:10:581246browse

Very simple thing:

 <audio controls="controls" id="controls"  src="" style="width: 100%;"></audio> 

Then send a request to audio with a src address and then it will play automatically. I have a pop-up prompt box showing that the autoplay attribute of the tag has a value of false but it still plays automatically. Who can Give me a way


Reply to the discussion (solution)

Then you just assign a value to this attribute. If you don’t assign a value, of course it will play automatically.

As long as there are controls, it will play automatically. Just remove the controls.

As long as there are controls, it will play automatically. Just remove the controls.
Controls are display players Like a button

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn