{记}网易云音乐的外链使用
1.获取外链
想要获取外链,只有在云音乐浏览器上才能获取:
浏览器打开一首歌曲的播放界面,点击生成外链播放器->
打开后如下:
然后复制HTML代码;
新建一个html文件粘贴进去测试:
发现并不能正常打开播放:
观察html代码发现链接少了协议头:
如图,加上https:后就能正常播放了:
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=86 src="http://music.163.com/outchain/player?type=2&id=1394402692&auto=1&height=66"></iframe>
like this:
2.网易云外链在博客园中的使用
<embed frameborder="no" border="0" marginwidth="0" marginheight="0" width=250 height=52 src="//music.163.com/outchain/player?type=2&id=1860234957&auto=1&height=32">
-------------====================分割线====================-------------