docs: create 编辑手册/2-3-1-Insert-Audio

This commit is contained in:
STARSET Mirror 2022-02-02 21:28:25 +08:00 committed by STARSET-Wiki-CN
parent 9636b8c117
commit 559b2b09ca

View file

@ -0,0 +1,24 @@
---
title: 2.3.1 插入音频
description:
published: true
date: 2022-02-02T13:28:22.671Z
tags:
editor: markdown
dateCreated: 2022-02-02T13:28:22.671Z
---
> 目前只有**Markdown编辑器**和**HTML编辑器**支持插入音频。如果你使用可视化编辑器,请先转换为这两个格式中的一个。
{.is-warning}
# 方案一:直接使用音乐平台提供的外链播放器
## 网易云音乐
1. 进入网页版网易云音乐,打开你要插入的单曲/歌单/专辑,就能看到“生成外链播放器”按钮
![生成外链播放器按钮](https://imgs.thestarsetsociety.cn/2022/02/02/40c60159b4925.png)
2. 单击“生成外链播放器”复制下方的HTML代码可预先选择样式、调整宽度、高度、是否自动播放
![配置播放器选项](https://imgs.thestarsetsociety.cn/2022/02/02/d8e4f11c8f3f8.png)
3. 将代码直接粘贴到你要编辑的页面里(三种播放器效果分别如下)
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=450 src="//music.163.com/outchain/player?type=1&id=135098711&auto=1&height=430"></iframe>
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=450 src="//music.163.com/outchain/player?type=2&id=135098711&auto=1&height=430"></iframe>
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=110 src="//music.163.com/outchain/player?type=1&id=135098711&auto=1&height=90"></iframe>
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=298 height=52 src="//music.163.com/outchain/player?type=1&id=135098711&auto=1&height=32"></iframe>