html5 source標籤怎麼用? html5 source標籤屬性介紹。現在開始介紹本篇文章的內容,主要跟大家講的是html5 source標籤的使用和html5 cource標籤的三個屬性具體的介紹
html5 source標籤定義和用法:
HTML5
有兩個原始檔案的音訊播放器。瀏覽器應該選擇它所支援的檔案(如果有的話):
<audio controls> <source src="horse.ogg" type="audio/ogg"> <source src="horse.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>
html5 source標籤的格式:
<source src="媒体资源地址" />
HTML5
<source src="movie.ogg" type="video/ogg" media="screen and (min-width:320px)">
HTML5
HTML5<source media="value">
HTML5
# HTML5
HTML5<source src="URL">
HTML5
<audio controls> <source src="horse.ogg" type="audio/ogg"> <source src="horse.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>
HTML5
HTML5
#HTML5
<audio controls> <source src="horse.ogg" type="audio/ogg"> <source src="horse.mp3" type="audio/mpeg"> 您的浏览器不支持 audio 元素。 </audio>
HTML5<source type="MIME_type">
HTML5
以上是html5 source標籤怎麼用? html5 source標籤屬性介紹的詳細內容。更多資訊請關注PHP中文網其他相關文章!