HTML <audio> 鏍囩


瀹炰緥

鎾斁澹伴煶锛

<audio controls> <source src="horse.ogg" type="audio/ogg"> <source src="horse.mp3" type="audio/mpeg"> 鎮ㄧ殑娴忚鍣ㄤ笉鏀寔 audio 鍏冪礌銆 </audio>

灏濊瘯涓涓 禄

娴忚鍣ㄦ敮鎸

Internet Explorer Firefox Opera Google Chrome Safari

1 分快三优信—官方网址22270.COMIE 9+銆丗irefox銆丱pera銆丆hrome 鍜 Safari 閮芥敮鎸 <audio> 鏍囩銆

娉ㄩ噴锛 IE 8 鎴栨洿鏃╃増鏈殑 IE 娴忚鍣ㄤ笉鏀寔 <audio> 鏍囩銆


鏍囩瀹氫箟鍙婁娇鐢ㄨ鏄

<audio> 鏍囩瀹氫箟澹伴煶锛屾瘮濡傞煶涔愭垨鍏朵粬闊抽娴併

鐩墠锛<audio> 鍏冪礌鏀寔鐨3绉嶆枃浠舵牸寮忥細MP3銆乄av銆丱gg銆

娴忚鍣 MP3 Wav Ogg
Internet Explorer YES NO NO
Chrome YES YES YES
Firefox YES YES YES
Safari YES YES NO
Opera YES YES YES


HTML 4.01 涓 HTML5涔嬮棿鐨勫樊寮

1 分快三优信—官方网址22270.COM<audio> 鏍囩鏄 HTML5 鐨勬柊鏍囩銆


鎻愮ず鍜屾敞閲

鎻愮ず锛鍙互鍦 <audio> 鍜 </audio> 涔嬮棿鏀剧疆鏂囨湰鍐呭锛岃繖浜涙枃鏈俊鎭皢浼氳鏄剧ず鍦ㄩ偅浜涗笉鏀寔 <audio> 鏍囩鐨勬祻瑙堝櫒涓


灞炴

New 锛欻TML5 涓殑鏂板睘鎬с

灞炴 鎻忚堪
autoplayNew autoplay 濡傛灉鍑虹幇璇ュ睘鎬э紝鍒欓煶棰戝湪灏辩华鍚庨┈涓婃挱鏀俱
controlsNew controls 1 分快三优信—官方网址22270.COM濡傛灉鍑虹幇璇ュ睘鎬э紝鍒欏悜鐢ㄦ埛鏄剧ず闊抽鎺т欢锛堟瘮濡傛挱鏀/鏆傚仠鎸夐挳锛夈
loopNew loop 濡傛灉鍑虹幇璇ュ睘鎬э紝鍒欐瘡褰撻煶棰戠粨鏉熸椂閲嶆柊寮濮嬫挱鏀俱
mutedNew muted 1 分快三优信—官方网址22270.COM濡傛灉鍑虹幇璇ュ睘鎬э紝鍒欓煶棰戣緭鍑轰负闈欓煶銆
preloadNew auto
metadata
none
瑙勫畾褰撶綉椤靛姞杞芥椂锛岄煶棰戞槸鍚﹂粯璁よ鍔犺浇浠ュ強濡備綍琚姞杞姐
srcNew URL 瑙勫畾闊抽鏂囦欢鐨 URL銆

鍏ㄥ眬灞炴

<audio> 鏍囩鏀寔 HTML 鐨勫叏灞灞炴1 分快三优信—官方网址22270.COM


浜嬩欢灞炴

<audio> 鏍囩鏀寔 HTML 鐨勪簨浠跺睘鎬