<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>HTML on kenji.blog</title><link>http://kenji.blog/zh-cn/tags/html/</link><description>Recent content in HTML on kenji.blog</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><copyright>kenjinote</copyright><lastBuildDate>Thu, 06 Apr 2023 23:23:46 +0900</lastBuildDate><atom:link href="http://kenji.blog/zh-cn/tags/html/index.xml" rel="self" type="application/rss+xml"/><item><title>使用HTML制作演示文稿的方法（reveal.js）</title><link>http://kenji.blog/zh-cn/p/html%E3%81%A7%E3%83%97%E3%83%AC%E3%82%BC%E3%83%B3%E8%B3%87%E6%96%99%E3%82%92%E4%BD%9C%E3%82%8B%E6%96%B9%E6%B3%95reveal.js/</link><pubDate>Thu, 06 Apr 2023 23:23:46 +0900</pubDate><guid>http://kenji.blog/zh-cn/p/html%E3%81%A7%E3%83%97%E3%83%AC%E3%82%BC%E3%83%B3%E8%B3%87%E6%96%99%E3%82%92%E4%BD%9C%E3%82%8B%E6%96%B9%E6%B3%95reveal.js/</guid><description>&lt;img src="http://kenji.blog/p/html%E3%81%A7%E3%83%97%E3%83%AC%E3%82%BC%E3%83%B3%E8%B3%87%E6%96%99%E3%82%92%E4%BD%9C%E3%82%8B%E6%96%B9%E6%B3%95reveal.js/img.png" alt="Featured image of post 使用HTML制作演示文稿的方法（reveal.js）" />&lt;h1 id="使用html制作演示文稿的方法">使用HTML制作演示文稿的方法
&lt;/h1>&lt;p>reveal.js 是一个使用 HTML 和 Markdown 的演示文稿制作工具，具有以下功能：&lt;/p>
&lt;ul>
&lt;li>公式、动画、滑动操作等丰富多彩的演示功能&lt;/li>
&lt;li>可以自定义主题和布局&lt;/li>
&lt;li>支持鼠标、键盘、触摸板等多种设备的导航功能&lt;/li>
&lt;li>提供幻灯片自动播放、嵌入视频等高级功能&lt;/li>
&lt;li>可以导出为 PDF 格式&lt;/li>
&lt;/ul>
&lt;p>通过这些功能，用户可以轻松创建交互式且富有吸引力的演示文稿。&lt;/p>
&lt;h1 id="revealjs-的安装与使用方法">reveal.js 的安装与使用方法
&lt;/h1>&lt;p>最简单的使用方法是从以下页面下载整个 ZIP 文件并解压缩。&lt;/p>
&lt;ol>
&lt;li>打开 &lt;a class="link" href="https://revealjs.com/installation" target="_blank" rel="noopener"
>https://revealjs.com/installation&lt;/a> ，从链接下载 &lt;code>master.zip&lt;/code>&lt;/li>
&lt;li>在浏览器中打开解压后文件夹内的 index.html&lt;/li>
&lt;li>修改 index.html，创建自己的演示文稿资料&lt;/li>
&lt;/ol>
&lt;p>※可以参考 demo.html，里面写有用于演示的 HTML 代码。&lt;/p>
&lt;h1 id="应用方法">应用方法
&lt;/h1>&lt;p>制作好的演示文稿可以直接作为网页公开，也可以导出为 PDF。
另外，由于演示文稿的源码是文本，因此很容易用版本控制系统进行管理。&lt;/p>
&lt;p>似乎还可以使用 Markdown 格式来创建演示资料。&lt;/p>
&lt;h1 id="参考资料">参考资料
&lt;/h1>&lt;ul>
&lt;li>&lt;a class="link" href="https://qiita.com/Targityen/items/40ae4795e2cb77c1adc6" target="_blank" rel="noopener"
>今后的演示资料就用 reveal.js 吧&lt;/a>&lt;/li>
&lt;li>&lt;a class="link" href="https://qiita.com/jkjoluvjlajelljicvjzojieoaid/items/01cd7ff819bc2e69b652" target="_blank" rel="noopener"
>Markdown 语法示例一览&lt;/a>&lt;/li>
&lt;/ul></description></item><item><title>在HUGO中使用HTML标签</title><link>http://kenji.blog/zh-cn/p/hugo%E3%81%A7html%E3%82%BF%E3%82%B0%E3%82%92%E4%BD%BF%E3%81%86/</link><pubDate>Tue, 17 Jan 2023 19:20:32 +0900</pubDate><guid>http://kenji.blog/zh-cn/p/hugo%E3%81%A7html%E3%82%BF%E3%82%B0%E3%82%92%E4%BD%BF%E3%81%86/</guid><description>&lt;img src="http://kenji.blog/p/hugo%E3%81%A7html%E3%82%BF%E3%82%B0%E3%82%92%E4%BD%BF%E3%81%86/img.png" alt="Featured image of post 在HUGO中使用HTML标签" />&lt;p>HUGO默认情况下是不允许在文章中使用HTML标签的，但是在config.toml中添加以下描述就可以使用了。&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-toml" data-lang="toml">&lt;span class="line">&lt;span class="cl">&lt;span class="p">[&lt;/span>&lt;span class="nx">markup&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="nx">goldmark&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="nx">renderer&lt;/span>&lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nx">unsafe&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="kc">true&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>参考: &lt;a class="link" href="https://gohugo.io/getting-started/configuration-markup" target="_blank" rel="noopener"
>Configure Markup&lt;/a>&lt;/p></description></item></channel></rss>