標籤:
html中插入音頻。H5的標籤 src為本地
<audio controls="controls" height="100" width="100"> <source src="韓庚 - I Don‘t Give A 屑.mp3" type="audio/mp3" /> <embed height="100" width="100" src="韓庚 - I Don‘t Give A 屑.mp3" /></audio>
| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>Web前端_自我介紹</title> </head> <script type="text/javascript"> function f1() { var title = document.title; var firchar = title.charAt(0); var leftchar = title.substring(1, title.length); document.title = leftchar + firchar; } function f2() { setInterval("f1()", 250); } function f3() { if (confirm("")) { alert(""); } else { alert(""); } } </script> <body onload="f2()"> <!--<style><embed src="C:\Users\Administrator\Desktop\韓庚 - I Don‘t Give A 屑.mp3" width="0" height="0" hidden="false" autostart="true"></embed></style>--> <p>老師好,我叫竺杭傑,學號201318100224,地信132,希望老師上課能多敲代碼示範以及展示下現下流行的H5。相信同學們會高度興趣的哦。</p> <p>最新的韓庚單曲送你哈 </p> <!--<embed hidden="ture" loop="-1" width=300 height=80 title="I Don‘t Give A 屑.mp3" > <source src="src="http://sh.ctfs.ftn.qq.com/ftn_handler/7dab5a5ed078e9edc532293fd98fcbc3d95a699792900ccb75cf06712f0d784c2ba0397c611ee4170bf20ecd63d3ac2b0050c10b7369d74fb246fe2223b0c0ca/?fname=%E9%9F%A9%E5%BA%9A+-+I+Don%26%2339%253t+Give+A+%E5%B1%91.mp3"></source> </embed>--> <audio controls="controls" height="100" width="100" loop="-1" autoplay="true"> <source src="http://sh.ctfs.ftn.qq.com/ftn_handler/7dab5a5ed078e9edc532293fd98fcbc3d95a699792900ccb75cf06712f0d784c2ba0397c611ee4170bf20ecd63d3ac2b0050c10b7369d74fb246fe2223b0c0ca/?fname=%E9%9F%A9%E5%BA%9A+-+I+Don%26%2339%253t+Give+A+%E5%B1%91.mp3" type="audio/mp3" /> <!--<embed height="100" width="100" src="I Don‘t Give A 屑.mp3" /></embed><!--如果第一個格式錯誤,會嘗試embed--> </audio> <p>最愛Lrc:</p> <img src="http://hz.ftn.qq.com/ftn_handler/e5db2bd09bbc783affc3ae9e09010af75a14683f365b73de2ec0db4d14b5231f453d12f1ec4c467712cc82a0c92207790593e46a200ae4913f20f838f3e7a6d0/?fname=shit.jpg" /> </body></html>
|
自製檔案連結後
?自製檔案連結步驟,找個固定的上傳源,如網盤,郵箱檔案中轉站都行。
然後上傳好檔案,點擊下載,就有連結了,刪除尾碼名後的部分如.jpg後面的全不要,.mp3後的全不要。這就是我們要的網址連結。
驗證是否正確,粘貼到瀏覽器,出現下載視窗,即說明正確!
HTML插入檔案連結(如音樂,照片)