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

html5 audio tag_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:10:58
Original
1242 people have browsed it

Very simple thing:

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template