0

0

html5改格式批量网页_导出epub阅读格式法【指南】

星夢妙者

星夢妙者

发布时间:2026-02-08 13:07:34

|

901人浏览过

|

来源于php中文网

原创

用 pandoc 批量转 HTML5 为 EPUB 最稳,因其正确解析语义标签、自动生成 NCX/OPF、保留 CSS,并需注意编码、标题层级、资源路径、Kindle 兼容性及 epubcheck 验证。

html5改格式批量网页_导出epub阅读格式法【指南】

pandoc 批量转 HTML5 为 EPUB 最稳

直接用 pandoc 是目前最可靠、兼容性最好、且真正支持批量处理的方式。它能正确解析 HTML5 语义标签(如

),自动生成 EPUB 的 NCX 和 OPF 结构,还能保留 CSS 样式(需额外指定)。

常见错误是直接用浏览器“另存为”或拖拽进 Calibre —— 这些方式常丢章节结构、乱码中文标题、忽略 等元信息。

  • 确保 HTML 文件有清晰的层级:用

    做书名,

    做章标题,

    做节标题(pandoc 靠这个生成目录)
  • 运行命令前先统一编码为 UTF-8(无 BOM),否则 EPUB 在 iOS 上可能显示乱码
  • 批量转换示例:
    for f in *.html; do pandoc "$f" -o "${f%.html}.epub" --metadata title="$(grep -oP '\K[^<]+' "$f")" --toc --toc-depth=2; done</pre></li>
    </ul>
    <h3>HTML5 中的 <code><article></article></code> 和 <code><section></section></code> 必须手动映射到 EPUB 章节</h3>
    <p>EPUB 3 规范不直接识别 HTML5 语义块;<code>pandoc</code> 默认只按标题(<code><h1>–<h6></h6>
    </h1></code>)切分章节,<code><article></article></code> 或 <code><section></section></code> 即使带 <code>id</code> 也不会自动变成独立 EPUB spine 条目。</p>
    <p>如果你的网页靠 <code><article id="ch01"></article></code> 组织内容,就得在转换时显式告诉 <code>pandoc</code>:</p>
    <p><span>立即学习</span>“<a href="https://pan.quark.cn/s/cb6835dc7db1" style="text-decoration: underline !important; color: blue; font-weight: bolder;" rel="nofollow" target="_blank">前端免费学习笔记(深入)</a>”;</p><div class="aritcle_card flexRow">
    							<div class="artcardd flexRow">
    								<a class="aritcle_card_img" href="/ai/2643" title="DeepSider"><img
    										src="https://img.php.cn/upload/ai_manual/001/246/273/176913842282738.png" alt="DeepSider"></a>
    								<div class="aritcle_card_info flexColumn">
    									<a href="/ai/2643" title="DeepSider">DeepSider</a>
    									<p>浏览器AI侧边栏对话插件,集成多个AI大模型</p>
    								</div>
    								<a href="/ai/2643" title="DeepSider" class="aritcle_card_btn flexRow flexcenter"><b></b><span>下载</span> </a>
    							</div>
    						</div>
    <ul>
    <li>加 <code>--top-level-division=section</code> 强制把每个 <code><section></section></code> 当作一章(前提是它们都含 <code><h2></h2></code>)</li>
    <li>或用 <code>--epub-chapter-level=2</code> 指定从 <code><h2></h2></code> 开始算章节(比默认的 <code><h1></h1></code> 更细)</li>
    <li>若想保留 <code><article></article></code> 的语义,建议提前用脚本把每个 <code><article></article></code> 包裹成独立 HTML 文件,再批量转</li>
    </ul>
    <h3>图片路径和相对链接在 EPUB 里极易失效</h3>
    <p>HTML5 页面中写的 <code><img  src="images/cover.jpg" alt="html5改格式批量网页_导出epub阅读格式法【指南】" ></code> 或 <code><a href="appendix.html"></a></code>,在 EPUB 容器内会找不到资源——因为 EPUB 是 ZIP 包,资源必须按 OCF 规范放在特定子目录,且路径要重写。</p>
    <ul>
    <li>
    <code>pandoc</code> 默认会把同目录图片自动打包进 EPUB,但深层路径(如 <code>../assets/</code>)会被忽略,需加 <code>--resource-path=.</code> 或明确列出:<code>--extract-media=.</code>
    </li>
    <li>跨 HTML 文件的链接(如从 <code>chapter1.html</code> 链到 <code>glossary.html</code>)不会自动转成 EPUB 内部引用,必须先合并或用 <code>--self-contained</code>(但会导致体积暴增)</li>
    <li>推荐做法:所有资源(CSS、图片、字体)集中放在 <code>resources/</code> 下,用 <code>pandoc -r html -w epub --resource-path=resources/</code>
    </li>
    </ul>
    <h3>中文 EPUB 在 Kindle 设备上显示异常的三个硬坑</h3>
    <p>不是编码问题,就是字体和 CSS 渲染逻辑冲突。Kindle 对 EPUB3 支持有限,尤其对 <code>@font-face</code>、Flexbox 和 CSS 变量几乎无视。</p>
    <ul>
    <li>务必禁用自定义中文字体:删掉 CSS 中所有 <code>@font-face</code> 声明,改用 <code>font-family: "SimSun", "Noto Serif CJK SC", serif;</code>(Kindle 系统自带)</li>
    <li>避免用 <code>rem</code> 或 <code>vh/vw</code> 做字号/间距,全部换为 <code>em</code> 或绝对单位(<code>pt</code>),例如:<code>body { font-size: 12pt; }</code>
    </li>
    <li>Kindle 不支持 <code>text-align: justify</code> 的两端对齐效果,会强制左对齐,若坚持要用,得预渲染成图片(不推荐)</li>
    </ul>
    <p>导出后务必用 <code>epubcheck</code> 验证:<code>epubcheck book.epub</code>,报 WARNING 级别的 <code>OPF-019</code>(metadata 缺失)或 <code>NAV-001</code>(导航文件无效)必须修复,否则部分阅读器打不开。</p>					</div>
    					<div class="artmoreart ">
    													<div class="artdp artptit"><span></span>
    								<p>相关文章</p>
    							</div>
    							<div class="artmores flexColumn">
    																	<a class="artmrlis flexRow" href="/faq/2079316.html" title="html图片插word不居中对齐怎弄_调段落与定位属性法【详解】"><b></b>
    										<p class="overflowclass">html图片插word不居中对齐怎弄_调段落与定位属性法【详解】</p>
    									</a>
    																	<a class="artmrlis flexRow" href="/faq/2078996.html" title="PSD转HTML5旧版PS能用吗_版本差异影响【介绍】"><b></b>
    										<p class="overflowclass">PSD转HTML5旧版PS能用吗_版本差异影响【介绍】</p>
    									</a>
    																	<a class="artmrlis flexRow" href="/faq/2078843.html" title="如何精准控制 CSS 过渡动画的延迟时机"><b></b>
    										<p class="overflowclass">如何精准控制 CSS 过渡动画的延迟时机</p>
    									</a>
    																	<a class="artmrlis flexRow" href="/faq/2078822.html" title="如何精确控制 CSS 过渡动画的延迟时机与反向序列"><b></b>
    										<p class="overflowclass">如何精确控制 CSS 过渡动画的延迟时机与反向序列</p>
    									</a>
    																	<a class="artmrlis flexRow" href="/faq/2078817.html" title="如何使用 Flexbox 将 SVG 图标精准居中于左侧矩形容器内"><b></b>
    										<p class="overflowclass">如何使用 Flexbox 将 SVG 图标精准居中于左侧矩形容器内</p>
    									</a>
    															</div>
    													<div class="artmoretabs flexRow">
    								<p>相关标签:</p>
    								<div class="mtbs flexRow">
    									<a class="mtbsa flexRow" onclick="hits_log(2,'www',this);" href-data="/zt/15716.html" target="_blank">css</a> <a class="mtbsa flexRow" onclick="hits_log(2,'www',this);" href-data="/zt/15763.html" target="_blank">html</a> <a class="mtbsa flexRow" onclick="hits_log(2,'www',this);" href-data="/zt/15948.html" target="_blank">html5</a> <a class="mtbsa flexRow" onclick="hits_log(2,'www',this);" href-data="/zt/16108.html" target="_blank">编码</a> <a class="mtbsa flexRow" onclick="hits_log(2,'www',this);" href-data="/zt/16180.html" target="_blank">浏览器</a> <a class="mtbsa flexRow" onclick="hits_log(2,'www',this);" href-data="/zt/16186.html" target="_blank">app</a> <a class="mtbsa flexRow" onclick="hits_log(2,'www',this);" href-data="/zt/17539.html" target="_blank">ai</a> <a class="mtbsa flexRow" onclick="hits_log(2,'www',this);" href-data="/zt/17719.html" target="_blank">ios</a> <a class="mtbsa flexRow" onclick="hits_log(2,'www',this);" href-data="/search?q=html5" target="_blank">html5</a> <a class="mtbsa flexRow" onclick="hits_log(2,'www',this);" href-data="/search?q=Resource" target="_blank">Resource</a> <a class="mtbsa flexRow" onclick="hits_log(2,'www',this);" href-data="/search?q=bom" target="_blank">bom</a> <a class="mtbsa flexRow" onclick="hits_log(2,'www',this);" href-data="/search?q=href" target="_blank">href</a> <a class="mtbsa flexRow" onclick="hits_log(2,'www',this);" href-data="/search?q=ios" target="_blank">ios</a>								</div>
    							</div>
    						
    						<p class="statement">本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn</p>
    						<div class="lastanext flexRow">
    													<a class="lastart flexRow" href="/faq/2080450.html" title="Vue 中自定义组件事件设计的最佳实践:单次 emit 还是多路 emit?"><span>上一篇:</span>Vue 中自定义组件事件设计的最佳实践:单次 emit 还是多路 emit?</a>
    													<a class="nextart flexRow" href="/faq/2080457.html" title="HTML5如何给滚动文字加边框圆角_CSSborderradius与boxsizing【操作】"><span>下一篇:</span>HTML5如何给滚动文字加边框圆角_CSSborderradius与boxsizing【操作】</a>
    												</div>
    					</div>
    
    					<div class="artlef-down ">
    													<div class="authormore ">
    								<div class="rightdTitle flexRow">
    									<div class="title-left flexRow"> <b></b>
    										<p>作者最新文章</p>
    									</div>
    								</div>
    																	<div class="authlist flexColumn">
    										<div class="autharts flexRow">
    											<a class="autharta flexRow " href="/faq/2074699.html" title="爱奇艺会员领取入口在哪_爱奇艺app会员免费领活动进入方法【教程】"><b></b>
    												<p class="overflowclass">爱奇艺会员领取入口在哪_爱奇艺app会员免费领活动进入方法【教程】</p>
    											</a>
    											<div class="authtime flexRow"><b></b>
    												<p>2026-02-06 16:59</p>
    											</div>
    										</div>
    								</div>
    																	<div class="authlist flexColumn">
    										<div class="autharts flexRow">
    											<a class="autharta flexRow " href="/faq/2074719.html" title="雷鸟Air2怎样设3D观影模式_雷鸟Air2的3D模式开启【沉浸】"><b></b>
    												<p class="overflowclass">雷鸟Air2怎样设3D观影模式_雷鸟Air2的3D模式开启【沉浸】</p>
    											</a>
    											<div class="authtime flexRow"><b></b>
    												<p>2026-02-06 17:02</p>
    											</div>
    										</div>
    								</div>
    																	<div class="authlist flexColumn">
    										<div class="autharts flexRow">
    											<a class="autharta flexRow " href="/faq/2074746.html" title="三位武侠英雄大比拼郭靖杨过令狐冲选谁开启你的游戏征程"><b></b>
    												<p class="overflowclass">三位武侠英雄大比拼郭靖杨过令狐冲选谁开启你的游戏征程</p>
    											</a>
    											<div class="authtime flexRow"><b></b>
    												<p>2026-02-06 17:08</p>
    											</div>
    										</div>
    								</div>
    																	<div class="authlist flexColumn">
    										<div class="autharts flexRow">
    											<a class="autharta flexRow " href="/faq/2074751.html" title="中国人事考试网官网入口 中国人事考试网2026报名系统入口"><b></b>
    												<p class="overflowclass">中国人事考试网官网入口 中国人事考试网2026报名系统入口</p>
    											</a>
    											<div class="authtime flexRow"><b></b>
    												<p>2026-02-06 17:10</p>
    											</div>
    										</div>
    								</div>
    																	<div class="authlist flexColumn">
    										<div class="autharts flexRow">
    											<a class="autharta flexRow " href="/faq/2074775.html" title="UC浏览器打印准考证色彩偏差大怎校_UC浏览器色彩校准法【还原】"><b></b>
    												<p class="overflowclass">UC浏览器打印准考证色彩偏差大怎校_UC浏览器色彩校准法【还原】</p>
    											</a>
    											<div class="authtime flexRow"><b></b>
    												<p>2026-02-06 17:14</p>
    											</div>
    										</div>
    								</div>
    																	<div class="authlist flexColumn">
    										<div class="autharts flexRow">
    											<a class="autharta flexRow " href="/faq/2074828.html" title="健康生活新姿态!打卡14天,与沃莱科技x蚂蚁阿福共迎新起点,好礼同行"><b></b>
    												<p class="overflowclass">健康生活新姿态!打卡14天,与沃莱科技x蚂蚁阿福共迎新起点,好礼同行</p>
    											</a>
    											<div class="authtime flexRow"><b></b>
    												<p>2026-02-06 17:26</p>
    											</div>
    										</div>
    								</div>
    																	<div class="authlist flexColumn">
    										<div class="autharts flexRow">
    											<a class="autharta flexRow " href="/faq/2074840.html" title="冥河实战技巧解析:灰血秒杀与幻影狂潮的核心奥秘"><b></b>
    												<p class="overflowclass">冥河实战技巧解析:灰血秒杀与幻影狂潮的核心奥秘</p>
    											</a>
    											<div class="authtime flexRow"><b></b>
    												<p>2026-02-06 17:28</p>
    											</div>
    										</div>
    								</div>
    																	<div class="authlist flexColumn">
    										<div class="autharts flexRow">
    											<a class="autharta flexRow " href="/faq/2074865.html" title="百词斩2026考研词汇官网入口_百词斩考研官方网站首页访问"><b></b>
    												<p class="overflowclass">百词斩2026考研词汇官网入口_百词斩考研官方网站首页访问</p>
    											</a>
    											<div class="authtime flexRow"><b></b>
    												<p>2026-02-06 17:31</p>
    											</div>
    										</div>
    								</div>
    																	<div class="authlist flexColumn">
    										<div class="autharts flexRow">
    											<a class="autharta flexRow " href="/faq/2074871.html" title="谷歌浏览器缴费支付超时怎续付_谷歌浏览器续付操作法【续付】"><b></b>
    												<p class="overflowclass">谷歌浏览器缴费支付超时怎续付_谷歌浏览器续付操作法【续付】</p>
    											</a>
    											<div class="authtime flexRow"><b></b>
    												<p>2026-02-06 17:32</p>
    											</div>
    										</div>
    								</div>
    																	<div class="authlist flexColumn">
    										<div class="autharts flexRow">
    											<a class="autharta flexRow " href="/faq/2074877.html" title="雷鸟Air1S怎样清缓存提速_雷鸟Air1S缓存清理步骤【流畅】"><b></b>
    												<p class="overflowclass">雷鸟Air1S怎样清缓存提速_雷鸟Air1S缓存清理步骤【流畅】</p>
    											</a>
    											<div class="authtime flexRow"><b></b>
    												<p>2026-02-06 17:34</p>
    											</div>
    										</div>
    								</div>
    															</div>
    						
    						<div class="moreAi ">
    							<div class="rightdTitle flexRow">
    								<div class="title-left flexRow"> <b></b>
    									<p>热门AI工具</p>
    								</div>
    								<a target="_blank" class="rititle-more flexRow" href="/ai" title="热门AI工具"><span>更多</span><b></b></a>
    							</div>
    
    							<div class="moreailist flexRow">
    																	<div class="aidcons flexRow   ">
    										<div   class="aibtns flexRow">
    											<a target="_blank" href="/ai/723" title="DeepSeek" class="aibtnsa flexRow" >
    												<img src="https://img.php.cn/upload/ai_manual/000/000/000/175679963982777.png?x-oss-process=image/resize,m_mfit,h_70,w_70,limit_0" alt="DeepSeek" class="aibtnimg" onerror="this.src='/static/lhimages/moren/morentu.png'">
    											</a>
    											<div class="aibtn-right flexColumn">
    												<a target="_blank" href="/ai/723" title="DeepSeek" class="overflowclass abripone">DeepSeek</a>
    												<p class="overflowclass abriptwo">幻方量化公司旗下的开源大模型平台</p>
    																									<div class="aidconstab flexRow">
    														<a class="aidcontbp flexRow flexcenter"  href="/ai/tag/code" target="_blank" >AI 编程开发</a><a class="aidcontbp flexRow flexcenter"  href="/ai/tag/chat" target="_blank" >AI 聊天问答</a>													</div>
    																							</div>
    										</div>
    									</div>
    																	<div class="aidcons flexRow   ">
    										<div   class="aibtns flexRow">
    											<a target="_blank" href="/ai/726" title="豆包大模型" class="aibtnsa flexRow" >
    												<img src="https://img.php.cn/upload/ai_manual/000/000/000/175680204067325.png?x-oss-process=image/resize,m_mfit,h_70,w_70,limit_0" alt="豆包大模型" class="aibtnimg" onerror="this.src='/static/lhimages/moren/morentu.png'">
    											</a>
    											<div class="aibtn-right flexColumn">
    												<a target="_blank" href="/ai/726" title="豆包大模型" class="overflowclass abripone">豆包大模型</a>
    												<p class="overflowclass abriptwo">字节跳动自主研发的一系列大型语言模型</p>
    																									<div class="aidconstab flexRow">
    														<a class="aidcontbp flexRow flexcenter"  href="/ai/tag/code" target="_blank" >AI 编程开发</a><a class="aidcontbp flexRow flexcenter"  href="/ai/tag/code/large-model" target="_blank" >AI大模型</a>													</div>
    																							</div>
    										</div>
    									</div>
    																	<div class="aidcons flexRow   ">
    										<div   class="aibtns flexRow">
    											<a target="_blank" href="/ai/725" title="通义千问" class="aibtnsa flexRow" >
    												<img src="https://img.php.cn/upload/ai_manual/000/000/000/175679974228210.png?x-oss-process=image/resize,m_mfit,h_70,w_70,limit_0" alt="通义千问" class="aibtnimg" onerror="this.src='/static/lhimages/moren/morentu.png'">
    											</a>
    											<div class="aibtn-right flexColumn">
    												<a target="_blank" href="/ai/725" title="通义千问" class="overflowclass abripone">通义千问</a>
    												<p class="overflowclass abriptwo">阿里巴巴推出的全能AI助手</p>
    																									<div class="aidconstab flexRow">
    														<a class="aidcontbp flexRow flexcenter"  href="/ai/tag/code" target="_blank" >AI 编程开发</a><a class="aidcontbp flexRow flexcenter"  href="/ai/tag/ai-agent" target="_blank" >Agent智能体</a>													</div>
    																							</div>
    										</div>
    									</div>
    																	<div class="aidcons flexRow   ">
    										<div   class="aibtns flexRow">
    											<a target="_blank" href="/ai/854" title="腾讯元宝" class="aibtnsa flexRow" >
    												<img src="https://img.php.cn/upload/ai_manual/000/000/000/175679978251103.png?x-oss-process=image/resize,m_mfit,h_70,w_70,limit_0" alt="腾讯元宝" class="aibtnimg" onerror="this.src='/static/lhimages/moren/morentu.png'">
    											</a>
    											<div class="aibtn-right flexColumn">
    												<a target="_blank" href="/ai/854" title="腾讯元宝" class="overflowclass abripone">腾讯元宝</a>
    												<p class="overflowclass abriptwo">腾讯混元平台推出的AI助手</p>
    																									<div class="aidconstab flexRow">
    														<a class="aidcontbp flexRow flexcenter"  href="/ai/tag/office/docs" target="_blank" >文档处理</a><a class="aidcontbp flexRow flexcenter"  href="/ai/tag/chat" target="_blank" >AI 聊天问答</a>													</div>
    																							</div>
    										</div>
    									</div>
    																	<div class="aidcons flexRow   ">
    										<div   class="aibtns flexRow">
    											<a target="_blank" href="/ai/724" title="文心一言" class="aibtnsa flexRow" >
    												<img src="https://img.php.cn/upload/ai_manual/000/000/000/175679974557049.png?x-oss-process=image/resize,m_mfit,h_70,w_70,limit_0" alt="文心一言" class="aibtnimg" onerror="this.src='/static/lhimages/moren/morentu.png'">
    											</a>
    											<div class="aibtn-right flexColumn">
    												<a target="_blank" href="/ai/724" title="文心一言" class="overflowclass abripone">文心一言</a>
    												<p class="overflowclass abriptwo">文心一言是百度开发的AI聊天机器人,通过对话可以生成各种形式的内容。</p>
    																									<div class="aidconstab flexRow">
    														<a class="aidcontbp flexRow flexcenter"  href="/ai/tag/code" target="_blank" >AI 编程开发</a><a class="aidcontbp flexRow flexcenter"  href="/ai/tag/text" target="_blank" >AI 文本写作</a>													</div>
    																							</div>
    										</div>
    									</div>
    																	<div class="aidcons flexRow   ">
    										<div   class="aibtns flexRow">
    											<a target="_blank" href="/ai/1507" title="讯飞写作" class="aibtnsa flexRow" >
    												<img src="https://img.php.cn/upload/ai_manual/000/969/633/68b7a4153cd86671.png?x-oss-process=image/resize,m_mfit,h_70,w_70,limit_0" alt="讯飞写作" class="aibtnimg" onerror="this.src='/static/lhimages/moren/morentu.png'">
    											</a>
    											<div class="aibtn-right flexColumn">
    												<a target="_blank" href="/ai/1507" title="讯飞写作" class="overflowclass abripone">讯飞写作</a>
    												<p class="overflowclass abriptwo">基于讯飞星火大模型的AI写作工具,可以快速生成新闻稿件、品宣文案、工作总结、心得体会等各种文文稿</p>
    																									<div class="aidconstab flexRow">
    														<a class="aidcontbp flexRow flexcenter"  href="/ai/tag/text" target="_blank" >AI 文本写作</a><a class="aidcontbp flexRow flexcenter"  href="/ai/tag/text/chinese-writing" target="_blank" >中文写作</a>													</div>
    																							</div>
    										</div>
    									</div>
    																	<div class="aidcons flexRow   ">
    										<div   class="aibtns flexRow">
    											<a target="_blank" href="/ai/1115" title="即梦AI" class="aibtnsa flexRow" >
    												<img src="https://img.php.cn/upload/ai_manual/001/246/273/68b6d8f7c530c315.png?x-oss-process=image/resize,m_mfit,h_70,w_70,limit_0" alt="即梦AI" class="aibtnimg" onerror="this.src='/static/lhimages/moren/morentu.png'">
    											</a>
    											<div class="aibtn-right flexColumn">
    												<a target="_blank" href="/ai/1115" title="即梦AI" class="overflowclass abripone">即梦AI</a>
    												<p class="overflowclass abriptwo">一站式AI创作平台,免费AI图片和视频生成。</p>
    																									<div class="aidconstab flexRow">
    														<a class="aidcontbp flexRow flexcenter"  href="" target="_blank" ></a><a class="aidcontbp flexRow flexcenter"  href="/ai/tag/image/image-titching" target="_blank" >图片拼接</a>													</div>
    																							</div>
    										</div>
    									</div>
    																	<div class="aidcons flexRow   ">
    										<div   class="aibtns flexRow">
    											<a target="_blank" href="/ai/808" title="ChatGPT" class="aibtnsa flexRow" >
    												<img src="https://img.php.cn/upload/ai_manual/000/000/000/175679970194596.png?x-oss-process=image/resize,m_mfit,h_70,w_70,limit_0" alt="ChatGPT" class="aibtnimg" onerror="this.src='/static/lhimages/moren/morentu.png'">
    											</a>
    											<div class="aibtn-right flexColumn">
    												<a target="_blank" href="/ai/808" title="ChatGPT" class="overflowclass abripone">ChatGPT</a>
    												<p class="overflowclass abriptwo">最最强大的AI聊天机器人程序,ChatGPT不单是聊天机器人,还能进行撰写邮件、视频脚本、文案、翻译、代码等任务。</p>
    																									<div class="aidconstab flexRow">
    														<a class="aidcontbp flexRow flexcenter"  href="/ai/tag/code" target="_blank" >AI 编程开发</a><a class="aidcontbp flexRow flexcenter"  href="/ai/tag/text" target="_blank" >AI 文本写作</a>													</div>
    																							</div>
    										</div>
    									</div>
    																	<div class="aidcons flexRow   ">
    										<div   class="aibtns flexRow">
    											<a target="_blank" href="/ai/821" title="智谱清言 - 免费全能的AI助手" class="aibtnsa flexRow" >
    												<img src="https://img.php.cn/upload/ai_manual/000/000/000/175679976181507.png?x-oss-process=image/resize,m_mfit,h_70,w_70,limit_0" alt="智谱清言 - 免费全能的AI助手" class="aibtnimg" onerror="this.src='/static/lhimages/moren/morentu.png'">
    											</a>
    											<div class="aibtn-right flexColumn">
    												<a target="_blank" href="/ai/821" title="智谱清言 - 免费全能的AI助手" class="overflowclass abripone">智谱清言 - 免费全能的AI助手</a>
    												<p class="overflowclass abriptwo">智谱清言 - 免费全能的AI助手</p>
    																									<div class="aidconstab flexRow">
    														<a class="aidcontbp flexRow flexcenter"  href="/ai/tag/code" target="_blank" >AI 编程开发</a><a class="aidcontbp flexRow flexcenter"  href="/ai/tag/ai-agent" target="_blank" >Agent智能体</a>													</div>
    																							</div>
    										</div>
    									</div>
    															</div>
    						</div>
    
    					</div>
    
    
    				</div>
    
    
    			</div>
    			<div class="conRight artdtilRight ">
    				<div class="artrig-adv ">
                        <script type="text/javascript" src="https://teacher.php.cn/php/MDM3MTk1MGYxYjI5ODJmNTE0ZWVkZTA3NmJhYzhmMjI6Og=="></script>
                    </div>
    				<div class="hotzt artdtzt">
    					<div class="rightdTitle flexRow">
    						<div class="title-left flexRow"> <b></b>
    							<p>相关专题</p>
    						</div>
    						<a target="_blank" class="rititle-more flexRow" href="/faq/zt" title="相关专题"><span>更多</span><b></b></a>
    					</div>
    					<div class="hotztuls flexColumn">
    													<div class="hotztlls flexRow">
    								<a target="_blank" href="/faq/html5dhzzynxz" class="aClass flexRow hotzta" title="html5动画制作有哪些制作方法"><img
    										src="https://img.php.cn/upload/subject/202310/23/2023102311470430860.jpg?x-oss-process=image/resize,m_mfit,h_75,w_120,limit_0" alt="html5动画制作有哪些制作方法" class="hotztaimg"
    										onerror="this.src='/static/lhimages/moren/morentu.png'"></a>
    								<div class="hotztright flexColumn">
    									<a target="_blank" href="/faq/html5dhzzynxz" class="aClass flexRow hotztra overflowclass" title="html5动画制作有哪些制作方法">html5动画制作有哪些制作方法</a>
    									<p class="aClass flexRow hotztrp overflowclass">html5动画制作方法有使用CSS3动画、使用JavaScript动画库、使用HTML5 Canvas等。想了解更多html5动画制作方法相关内容,可以阅读本专题下面的文章。</p>
    									<div class="hotztrdown flexRow">
    										<div class="htztdsee flexRow"> <b></b>
    											<p class="">519</p>
    										</div>
    										<div class="htztdTime flexRow"> <b></b>
    											<p>2023.10.23</p>
    										</div>
    									</div>
    								</div>
    							</div>
    													<div class="hotztlls flexRow">
    								<a target="_blank" href="/faq/htmlyhtmldeqb" class="aClass flexRow hotzta" title="HTML与HTML5的区别"><img
    										src="https://img.php.cn/upload/subject/202403/06/2024030615333441039.jpg?x-oss-process=image/resize,m_mfit,h_75,w_120,limit_0" alt="HTML与HTML5的区别" class="hotztaimg"
    										onerror="this.src='/static/lhimages/moren/morentu.png'"></a>
    								<div class="hotztright flexColumn">
    									<a target="_blank" href="/faq/htmlyhtmldeqb" class="aClass flexRow hotztra overflowclass" title="HTML与HTML5的区别">HTML与HTML5的区别</a>
    									<p class="aClass flexRow hotztrp overflowclass">HTML与HTML5的区别:1、html5支持矢量图形,html本身不支持;2、html5中可临时存储数据,html不行;3、html5新增了许多控件;4、html本身不支持音频和视频,html5支持;5、html无法处理不准确的语法,html5能够处理等等。想了解更多HTML与HTML5的相关内容,可以阅读本专题下面的文章。</p>
    									<div class="hotztrdown flexRow">
    										<div class="htztdsee flexRow"> <b></b>
    											<p class="">444</p>
    										</div>
    										<div class="htztdTime flexRow"> <b></b>
    											<p>2024.03.06</p>
    										</div>
    									</div>
    								</div>
    							</div>
    													<div class="hotztlls flexRow">
    								<a target="_blank" href="/faq/html5crmdjthz" class="aClass flexRow hotzta" title="html5从入门到精通汇总"><img
    										src="https://img.php.cn/upload/subject/202512/30/2025123014274497014.jpg?x-oss-process=image/resize,m_mfit,h_75,w_120,limit_0" alt="html5从入门到精通汇总" class="hotztaimg"
    										onerror="this.src='/static/lhimages/moren/morentu.png'"></a>
    								<div class="hotztright flexColumn">
    									<a target="_blank" href="/faq/html5crmdjthz" class="aClass flexRow hotztra overflowclass" title="html5从入门到精通汇总">html5从入门到精通汇总</a>
    									<p class="aClass flexRow hotztrp overflowclass">想系统掌握HTML5开发?本合集精选全网优质学习资源,涵盖免费教程、实战项目、视频课程与权威电子书,从基础语法到高级特性(Canvas、本地存储、响应式布局等)一应俱全,适合零基础小白到进阶开发者,助你高效入门并精通HTML5前端开发。</p>
    									<div class="hotztrdown flexRow">
    										<div class="htztdsee flexRow"> <b></b>
    											<p class="">134</p>
    										</div>
    										<div class="htztdTime flexRow"> <b></b>
    											<p>2025.12.30</p>
    										</div>
    									</div>
    								</div>
    							</div>
    													<div class="hotztlls flexRow">
    								<a target="_blank" href="/faq/html5xlbqhz" class="aClass flexRow hotzta" title="html5新老标签汇总"><img
    										src="https://img.php.cn/upload/subject/202512/30/2025123014322442794.jpg?x-oss-process=image/resize,m_mfit,h_75,w_120,limit_0" alt="html5新老标签汇总" class="hotztaimg"
    										onerror="this.src='/static/lhimages/moren/morentu.png'"></a>
    								<div class="hotztright flexColumn">
    									<a target="_blank" href="/faq/html5xlbqhz" class="aClass flexRow hotztra overflowclass" title="html5新老标签汇总">html5新老标签汇总</a>
    									<p class="aClass flexRow hotztrp overflowclass">HTML5在2026年持续优化网页语义化与交互体验,不仅引入了如<header>、<nav>、<article>、<section>、<aside>、<footer>等结构化标签,还新增了<video>、<audio>、<canvas>、<figure>、<time>、<mark>等增强多媒体与</p>
    									<div class="hotztrdown flexRow">
    										<div class="htztdsee flexRow"> <b></b>
    											<p class="">148</p>
    										</div>
    										<div class="htztdTime flexRow"> <b></b>
    											<p>2025.12.30</p>
    										</div>
    									</div>
    								</div>
    							</div>
    													<div class="hotztlls flexRow">
    								<a target="_blank" href="/faq/html5kgdmzx" class="aClass flexRow hotzta" title="html5空格代码怎么写"><img
    										src="https://img.php.cn/upload/subject/202512/30/2025123014372737027.jpg?x-oss-process=image/resize,m_mfit,h_75,w_120,limit_0" alt="html5空格代码怎么写" class="hotztaimg"
    										onerror="this.src='/static/lhimages/moren/morentu.png'"></a>
    								<div class="hotztright flexColumn">
    									<a target="_blank" href="/faq/html5kgdmzx" class="aClass flexRow hotztra overflowclass" title="html5空格代码怎么写">html5空格代码怎么写</a>
    									<p class="aClass flexRow hotztrp overflowclass">在HTML5中,空格不能直接通过键盘空格键实现,需使用特定代码。本合集详解常用空格写法:&nbsp;(不间断空格)、&ensp;(半个中文空格)、&emsp;(一个中文空格)及CSS的white-space属性等方法,帮助开发者精准控制页面排版,避免因空格失效导致布局错乱,适用于新手入门与实战参考。</p>
    									<div class="hotztrdown flexRow">
    										<div class="htztdsee flexRow"> <b></b>
    											<p class="">88</p>
    										</div>
    										<div class="htztdTime flexRow"> <b></b>
    											<p>2025.12.30</p>
    										</div>
    									</div>
    								</div>
    							</div>
    													<div class="hotztlls flexRow">
    								<a target="_blank" href="/faq/html5zmzwzjc" class="aClass flexRow hotzta" title="html5怎么做网站教程"><img
    										src="https://img.php.cn/upload/subject/202512/31/2025123112142643620.jpg?x-oss-process=image/resize,m_mfit,h_75,w_120,limit_0" alt="html5怎么做网站教程" class="hotztaimg"
    										onerror="this.src='/static/lhimages/moren/morentu.png'"></a>
    								<div class="hotztright flexColumn">
    									<a target="_blank" href="/faq/html5zmzwzjc" class="aClass flexRow hotztra overflowclass" title="html5怎么做网站教程">html5怎么做网站教程</a>
    									<p class="aClass flexRow hotztrp overflowclass">想从零开始学做网站?这份《HTML5怎么做网站教程》合集专为新手打造!涵盖HTML5基础语法、页面结构搭建、表单与多媒体嵌入、响应式布局及与CSS3/JavaScript协同开发等核心内容。无需编程基础,手把手教你用纯HTML5创建美观、兼容、移动端友好的现代网页。附实战案例+代码模板,快速上手,轻松迈出Web开发第一步!</p>
    									<div class="hotztrdown flexRow">
    										<div class="htztdsee flexRow"> <b></b>
    											<p class="">164</p>
    										</div>
    										<div class="htztdTime flexRow"> <b></b>
    											<p>2025.12.31</p>
    										</div>
    									</div>
    								</div>
    							</div>
    													<div class="hotztlls flexRow">
    								<a target="_blank" href="/faq/html5jmjc" class="aClass flexRow hotzta" title="HTML5建模教程"><img
    										src="https://img.php.cn/upload/subject/202512/31/2025123112202256406.jpg?x-oss-process=image/resize,m_mfit,h_75,w_120,limit_0" alt="HTML5建模教程" class="hotztaimg"
    										onerror="this.src='/static/lhimages/moren/morentu.png'"></a>
    								<div class="hotztright flexColumn">
    									<a target="_blank" href="/faq/html5jmjc" class="aClass flexRow hotztra overflowclass" title="HTML5建模教程">HTML5建模教程</a>
    									<p class="aClass flexRow hotztrp overflowclass">想快速掌握HTML5模板搭建?本合集汇集实用HTML5建模教程,从零基础入门到实战开发全覆盖!内容涵盖响应式布局、语义化标签、Canvas绘图、表单验证及移动端适配等核心技能,提供可直接复用的模板结构与代码示例。无需复杂配置,助你高效构建现代网页,轻松上手前端开发!</p>
    									<div class="hotztrdown flexRow">
    										<div class="htztdsee flexRow"> <b></b>
    											<p class="">34</p>
    										</div>
    										<div class="htztdTime flexRow"> <b></b>
    											<p>2025.12.31</p>
    										</div>
    									</div>
    								</div>
    							</div>
    													<div class="hotztlls flexRow">
    								<a target="_blank" href="/faq/html5zmsy" class="aClass flexRow hotzta" title="html5怎么使用"><img
    										src="https://img.php.cn/upload/subject/202512/31/2025123114112079655.jpg?x-oss-process=image/resize,m_mfit,h_75,w_120,limit_0" alt="html5怎么使用" class="hotztaimg"
    										onerror="this.src='/static/lhimages/moren/morentu.png'"></a>
    								<div class="hotztright flexColumn">
    									<a target="_blank" href="/faq/html5zmsy" class="aClass flexRow hotztra overflowclass" title="html5怎么使用">html5怎么使用</a>
    									<p class="aClass flexRow hotztrp overflowclass">想快速上手HTML5开发?本合集为你整理最实用的HTML5使用指南!涵盖HTML5基础语法、主流框架(如Bootstrap、Vue、React)集成方法,以及无需安装、直接在线编辑运行的平台推荐(如CodePen、JSFiddle)。无论你是新手还是进阶开发者,都能轻松掌握HTML5网页制作、响应式布局与交互功能开发,零配置开启高效前端编程之旅!</p>
    									<div class="hotztrdown flexRow">
    										<div class="htztdsee flexRow"> <b></b>
    											<p class="">48</p>
    										</div>
    										<div class="htztdTime flexRow"> <b></b>
    											<p>2025.12.31</p>
    										</div>
    									</div>
    								</div>
    							</div>
    													<div class="hotztlls flexRow">
    								<a target="_blank" href="/faq/golangclsjkcw" class="aClass flexRow hotzta" title="Golang处理数据库错误教程合集"><img
    										src="https://img.php.cn/upload/subject/202602/06/2026020618130357852.jpg?x-oss-process=image/resize,m_mfit,h_75,w_120,limit_0" alt="Golang处理数据库错误教程合集" class="hotztaimg"
    										onerror="this.src='/static/lhimages/moren/morentu.png'"></a>
    								<div class="hotztright flexColumn">
    									<a target="_blank" href="/faq/golangclsjkcw" class="aClass flexRow hotztra overflowclass" title="Golang处理数据库错误教程合集">Golang处理数据库错误教程合集</a>
    									<p class="aClass flexRow hotztrp overflowclass">本专题整合了Golang数据库错误处理方法、技巧、管理策略相关内容,阅读专题下面的文章了解更多详细内容。</p>
    									<div class="hotztrdown flexRow">
    										<div class="htztdsee flexRow"> <b></b>
    											<p class="">61</p>
    										</div>
    										<div class="htztdTime flexRow"> <b></b>
    											<p>2026.02.06</p>
    										</div>
    									</div>
    								</div>
    							</div>
    											</div>
    				</div>
    
    				<div class="hotdownload ">
    					<div class="rightdTitle flexRow">
    						<div class="title-left flexRow"> <b></b>
    							<p>热门下载</p>
    						</div>
    						<a target="_blank" class="rititle-more flexRow" href="/xiazai" title="热门下载"><span>更多</span><b></b></a>
    					</div>
    					<div class="hotdownTab">
    						<div class="hdTabs flexRow">
    							<div class="check" data-id="onef">网站特效 <b></b> </div> /
    							<div class="" data-id="twof">网站源码 <b></b></div> /
    							<div class="" data-id="threef">网站素材 <b></b></div> /
    							<div class="" data-id="fourf">前端模板 <b></b></div>
    						</div>
    						<ul class="onef">
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" title="jQuery+css随意抓拍图片效果" href="/xiazai/js/8803"><span>[图片特效]</span><span>jQuery+css随意抓拍图片效果</span></a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" title="HTML5全屏百叶窗切换特效" href="/xiazai/js/8802"><span>[图片特效]</span><span>HTML5全屏百叶窗切换特效</span></a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" title="jquery旋转木马插件TikslusCarousel" href="/xiazai/js/8801"><span>[图片特效]</span><span>jquery旋转木马插件TikslusCarousel</span></a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" title="js首页按钮控制焦点图片滚动" href="/xiazai/js/8800"><span>[图片特效]</span><span>js首页按钮控制焦点图片滚动</span></a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" title="js图片相册随机换一换代码" href="/xiazai/js/8799"><span>[图片特效]</span><span>js图片相册随机换一换代码</span></a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" title="jQuery带左右箭头图片放大切换" href="/xiazai/js/8798"><span>[图片特效]</span><span>jQuery带左右箭头图片放大切换</span></a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" title="jQuery幻灯片插件SkitterSlideshow" href="/xiazai/js/8797"><span>[图片特效]</span><span>jQuery幻灯片插件SkitterSlideshow</span></a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" title="jQuery三图排列滑块幻灯片特效" href="/xiazai/js/8796"><span>[图片特效]</span><span>jQuery三图排列滑块幻灯片特效</span></a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" title="CSS3实现超酷图片镜像效果" href="/xiazai/js/8795"><span>[图片特效]</span><span>CSS3实现超酷图片镜像效果</span></a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" title="原生JS点击小图弹出大图代码" href="/xiazai/js/8794"><span>[图片特效]</span><span>原生JS点击小图弹出大图代码</span></a>
    									</div>
    								</li>
    													</ul>
    						<ul class="twof" style="display:none;">
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/11355" title="openaishop"><span>[电商源码]</span><span>openaishop</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/11354" title="思翔企(事)业单位文件柜 build 20080313"><span>[其它模板]</span><span>思翔企(事)业单位文件柜 build 20080313</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/11353" title="雅龙智能装备工业设备类WordPress主题1.0"><span>[企业站源码]</span><span>雅龙智能装备工业设备类WordPress主题1.0</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/11352" title="威发卡自动发卡系统"><span>[电商源码]</span><span>威发卡自动发卡系统</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/11351" title="卡密分发系统"><span>[电商源码]</span><span>卡密分发系统</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/11350" title="中华陶瓷网"><span>[电商源码]</span><span>中华陶瓷网</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/11349" title="简洁粉色食品公司网站"><span>[电商源码]</span><span>简洁粉色食品公司网站</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/11348" title="极速网店系统"><span>[电商源码]</span><span>极速网店系统</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/11347" title="淘宝妈妈_淘客推广系统"><span>[电商源码]</span><span>淘宝妈妈_淘客推广系统</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/11346" title="积客B2SCMS商城系统"><span>[电商源码]</span><span>积客B2SCMS商城系统</span> </a>
    									</div>
    								</li>
    													</ul>
    						<ul class="threef" style="display:none;">
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/sucai/4357" title="2026金红奢华马年矢量模板"><span>[网站素材]</span><span>2026金红奢华马年矢量模板</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/sucai/4356" title="新鲜肉食折扣方形海报设计素材下载"><span>[网站素材]</span><span>新鲜肉食折扣方形海报设计素材下载</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/sucai/4355" title="2026马年剪纸插画矢量素材"><span>[网站素材]</span><span>2026马年剪纸插画矢量素材</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/sucai/4354" title="健康有机蔬菜食材海报矢量模板"><span>[网站素材]</span><span>健康有机蔬菜食材海报矢量模板</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/sucai/4353" title="传统水墨松鹤延年图矢量素材"><span>[网站素材]</span><span>传统水墨松鹤延年图矢量素材</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/sucai/4352" title="情人节快乐主题折扣海报设计素材下载"><span>[网站素材]</span><span>情人节快乐主题折扣海报设计素材下载</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/sucai/4351" title="可爱Q版小马黑白线稿矢量素材"><span>[网站素材]</span><span>可爱Q版小马黑白线稿矢量素材</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/sucai/4350" title="新年线性灯笼装饰合集矢量素材"><span>[网站素材]</span><span>新年线性灯笼装饰合集矢量素材</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/sucai/4349" title="美味披萨折扣海报PSD模板下载"><span>[网站素材]</span><span>美味披萨折扣海报PSD模板下载</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/sucai/4348" title="气球香槟爱心派对邀请矢量模板"><span>[网站素材]</span><span>气球香槟爱心派对邀请矢量模板</span> </a>
    									</div>
    								</li>
    													</ul>
    						<ul class="fourf" style="display:none;">
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/8590"  title="驾照考试驾校HTML5网站模板"><span>[前端模板]</span><span>驾照考试驾校HTML5网站模板</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/8589"  title="驾照培训服务机构宣传网站模板"><span>[前端模板]</span><span>驾照培训服务机构宣传网站模板</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/8588"  title="HTML5房地产公司宣传网站模板"><span>[前端模板]</span><span>HTML5房地产公司宣传网站模板</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/8587"  title="新鲜有机肉类宣传网站模板"><span>[前端模板]</span><span>新鲜有机肉类宣传网站模板</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/8586"  title="响应式天气预报宣传网站模板"><span>[前端模板]</span><span>响应式天气预报宣传网站模板</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/8585"  title="房屋建筑维修公司网站CSS模板"><span>[前端模板]</span><span>房屋建筑维修公司网站CSS模板</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/8584"  title="响应式志愿者服务网站模板"><span>[前端模板]</span><span>响应式志愿者服务网站模板</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/8583"  title="创意T恤打印店网站HTML5模板"><span>[前端模板]</span><span>创意T恤打印店网站HTML5模板</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/8582"  title="网页开发岗位简历作品展示网页模板"><span>[前端模板]</span><span>网页开发岗位简历作品展示网页模板</span> </a>
    									</div>
    								</li>
    															<li>
    									<div class="wzrfourli flexRow">
    										<b></b>
    										<a target="_blank" href="/xiazai/code/8581"  title="响应式人力资源机构宣传网站模板"><span>[前端模板]</span><span>响应式人力资源机构宣传网站模板</span> </a>
    									</div>
    								</li>
    													</ul>
    					</div>
    					<script>
    						$('.hdTabs>div').click(function (e) {
    							$('.hdTabs>div').removeClass('check')
    							$(this).addClass('check')
    							$('.hotdownTab>ul').css('display', 'none')
    							$('.' + e.currentTarget.dataset.id).show()
    						})
    					</script>
    
    				</div>
    
    				<div class="artrig-adv ">
    					<script type="text/javascript" src="https://teacher.php.cn/php/MDM3MTk1MGYxYjI5ODJmNTE0ZWVkZTA3NmJhYzhmMjI6Og=="></script>
                    </div>
    
    
    
    				<div class="xgarts ">
    					<div class="rightdTitle flexRow">
    						<div class="title-left flexRow"> <b></b>
    							<p>相关下载</p>
    						</div>
    						<a target="_blank" class="rititle-more flexRow" href="/xiazai" title="相关下载"><span>更多</span><b></b></a>
    					</div>
    					<div class="xgwzlist ">
    											<div class="xgwzlid flexRow"><b></b><a target="_blank" title="php商城系统" href="/xiazai/code/11178">php商城系统</a></div>
    											<div class="xgwzlid flexRow"><b></b><a target="_blank" title="淘源码商城PHP淘宝查信誉" href="/xiazai/code/11177">淘源码商城PHP淘宝查信誉</a></div>
    											<div class="xgwzlid flexRow"><b></b><a target="_blank" title="PHP房产程序[BBWPS]" href="/xiazai/code/11165">PHP房产程序[BBWPS]</a></div>
    											<div class="xgwzlid flexRow"><b></b><a target="_blank" title="PHP简约自动发卡平台个人版" href="/xiazai/code/11128">PHP简约自动发卡平台个人版</a></div>
    											<div class="xgwzlid flexRow"><b></b><a target="_blank" title="ERMEB域名PHP离线网络授权系统" href="/xiazai/code/11040">ERMEB域名PHP离线网络授权系统</a></div>
    											<div class="xgwzlid flexRow"><b></b><a target="_blank" title="Difeye-敏捷的轻量级PHP框架" href="/xiazai/code/11037">Difeye-敏捷的轻量级PHP框架</a></div>
    											<div class="xgwzlid flexRow"><b></b><a target="_blank" title="大泉州汽车网PHP整站程序" href="/xiazai/code/10963">大泉州汽车网PHP整站程序</a></div>
    										</div>
    
    				</div>
    
    				<div class="jpkc">
    					<div class="rightdTitle flexRow">
    						<div class="title-left flexRow"> <b></b>
    							<p>精品课程</p>
    						</div>
    						<a class="rititle-more flexRow" target="_blank" href="/course/sort_new.html" title="精品课程"><span>更多</span><b></b></a>
    					</div>
    					<div class=" jpkcTab">
    						<div class=" jpkcTabs flexRow">
    							<div class="check" data-id="onefd">相关推荐 <b></b> </div> /
    							<div class="" data-id="twofd">热门推荐 <b></b></div> /
    							<div class="" data-id="threefd">最新课程 <b></b></div>
    						</div>
    						<div class="onefd jpktabd">
    													<div  class="ristyA flexRow " >
    								<a target="_blank" href="/course/1683.html" title="Sass 教程">
    									<img src="https://img.php.cn/upload/course/000/000/090/689da3d823e1e854.png?x-oss-process=image/resize,m_mfit,h_75,w_120,limit_0" alt="Sass 教程" class="ristyAimg"
    										onerror="this.src='/static/mobimages/moren/morentu.png'">
    								</a>
    								<div class="ristyaRight flexColumn">
    									<a target="_blank" href="/course/1683.html" title="Sass 教程"
    										class="rirightp overflowclass">Sass 教程</a>
    
    									<div class="risrdown flexRow">
    										<p>共14课时 | 0.8万人学习</p>
    									</div>
    								</div>
    							</div>
    													<div  class="ristyA flexRow " >
    								<a target="_blank" href="/course/1673.html" title="Bootstrap 5教程">
    									<img src="https://img.php.cn/upload/course/000/000/090/6899a24dcdf73781.png?x-oss-process=image/resize,m_mfit,h_75,w_120,limit_0" alt="Bootstrap 5教程" class="ristyAimg"
    										onerror="this.src='/static/mobimages/moren/morentu.png'">
    								</a>
    								<div class="ristyaRight flexColumn">
    									<a target="_blank" href="/course/1673.html" title="Bootstrap 5教程"
    										class="rirightp overflowclass">Bootstrap 5教程</a>
    
    									<div class="risrdown flexRow">
    										<p>共46课时 | 3.2万人学习</p>
    									</div>
    								</div>
    							</div>
    													<div  class="ristyA flexRow " >
    								<a target="_blank" href="/course/1660.html" title="CSS教程">
    									<img src="https://img.php.cn/upload/course/000/000/090/68774990cfb6f919.jpg?x-oss-process=image/resize,m_mfit,h_75,w_120,limit_0" alt="CSS教程" class="ristyAimg"
    										onerror="this.src='/static/mobimages/moren/morentu.png'">
    								</a>
    								<div class="ristyaRight flexColumn">
    									<a target="_blank" href="/course/1660.html" title="CSS教程"
    										class="rirightp overflowclass">CSS教程</a>
    
    									<div class="risrdown flexRow">
    										<p>共754课时 | 28.9万人学习</p>
    									</div>
    								</div>
    							</div>
    												</div>
    
    						<div class="twofd jpktabd" style="display:none;">
    															<div  class="ristyA flexRow " >
    									<a target="_blank" href="/course/1656.html" title="JavaScript ES5基础线上课程教学">
    										<img src="https://img.php.cn/upload/course/000/000/081/6862652adafef801.png?x-oss-process=image/resize,m_mfit,h_86,w_140,limit_0" alt="JavaScript ES5基础线上课程教学" class="ristyAimg"
    											onerror="this.src='/static/mobimages/moren/morentu.png'">
    									</a>
    									<div class="ristyaRight flexColumn">
    										<a target="_blank" href="/course/1656.html" title="JavaScript ES5基础线上课程教学"
    											class="rirightp overflowclass">JavaScript ES5基础线上课程教学</a>
    
    										<div class="risrdown flexRow">
    											<p>共6课时 | 11.2万人学习</p>
    										</div>
    									</div>
    								</div>
    															<div  class="ristyA flexRow " >
    									<a target="_blank" href="/course/812.html" title="最新ThinkPHP 5.1全球首发视频教程(60天成就PHP大牛线上培训班课)">
    										<img src="https://img.php.cn/upload/course/000/000/041/620debc3eab3f377.jpg?x-oss-process=image/resize,m_mfit,h_86,w_140,limit_0" alt="最新ThinkPHP 5.1全球首发视频教程(60天成就PHP大牛线上培训班课)" class="ristyAimg"
    											onerror="this.src='/static/mobimages/moren/morentu.png'">
    									</a>
    									<div class="ristyaRight flexColumn">
    										<a target="_blank" href="/course/812.html" title="最新ThinkPHP 5.1全球首发视频教程(60天成就PHP大牛线上培训班课)"
    											class="rirightp overflowclass">最新ThinkPHP 5.1全球首发视频教程(60天成就PHP大牛线上培训班课)</a>
    
    										<div class="risrdown flexRow">
    											<p>共79课时 | 152.3万人学习</p>
    										</div>
    									</div>
    								</div>
    															<div  class="ristyA flexRow " >
    									<a target="_blank" href="/course/639.html" title="phpStudy极速入门视频教程">
    										<img src="https://img.php.cn/upload/course/000/000/068/62611ef88fcec821.jpg?x-oss-process=image/resize,m_mfit,h_86,w_140,limit_0" alt="phpStudy极速入门视频教程" class="ristyAimg"
    											onerror="this.src='/static/mobimages/moren/morentu.png'">
    									</a>
    									<div class="ristyaRight flexColumn">
    										<a target="_blank" href="/course/639.html" title="phpStudy极速入门视频教程"
    											class="rirightp overflowclass">phpStudy极速入门视频教程</a>
    
    										<div class="risrdown flexRow">
    											<p>共6课时 | 53.5万人学习</p>
    										</div>
    									</div>
    								</div>
    													</div>
    
    						<div class="threefd jpktabd" style="display:none;">
    															<div  class="ristyA flexRow " >
    										<a target="_blank" href="/course/1696.html" title="最新Python教程 从入门到精通">
    											<img src="https://img.php.cn/upload/course/000/000/081/68c135bb72783194.png?x-oss-process=image/resize,m_mfit,h_86,w_140,limit_0" alt="最新Python教程 从入门到精通" class="ristyAimg"
    												onerror="this.src='/static/mobimages/moren/morentu.png'">
    										</a>
    										<div class="ristyaRight flexColumn">
    											<a target="_blank" href="/course/1696.html" title="最新Python教程 从入门到精通"
    												class="rirightp overflowclass">最新Python教程 从入门到精通</a>
    
    											<div class="risrdown flexRow">
    												<p>共4课时 | 22.4万人学习</p>
    											</div>
    										</div>
    									</div>
    																<div  class="ristyA flexRow " >
    										<a target="_blank" href="/course/1656.html" title="JavaScript ES5基础线上课程教学">
    											<img src="https://img.php.cn/upload/course/000/000/081/6862652adafef801.png?x-oss-process=image/resize,m_mfit,h_86,w_140,limit_0" alt="JavaScript ES5基础线上课程教学" class="ristyAimg"
    												onerror="this.src='/static/mobimages/moren/morentu.png'">
    										</a>
    										<div class="ristyaRight flexColumn">
    											<a target="_blank" href="/course/1656.html" title="JavaScript ES5基础线上课程教学"
    												class="rirightp overflowclass">JavaScript ES5基础线上课程教学</a>
    
    											<div class="risrdown flexRow">
    												<p>共6课时 | 11.2万人学习</p>
    											</div>
    										</div>
    									</div>
    																<div  class="ristyA flexRow " >
    										<a target="_blank" href="/course/1655.html" title="PHP新手语法线上课程教学">
    											<img src="https://img.php.cn/upload/course/000/000/081/684a8c23d811b293.png?x-oss-process=image/resize,m_mfit,h_86,w_140,limit_0" alt="PHP新手语法线上课程教学" class="ristyAimg"
    												onerror="this.src='/static/mobimages/moren/morentu.png'">
    										</a>
    										<div class="ristyaRight flexColumn">
    											<a target="_blank" href="/course/1655.html" title="PHP新手语法线上课程教学"
    												class="rirightp overflowclass">PHP新手语法线上课程教学</a>
    
    											<div class="risrdown flexRow">
    												<p>共13课时 | 0.9万人学习</p>
    											</div>
    										</div>
    									</div>
    														</div>
    						<script>
    							$('.jpkcTabs>div').click(function (e) {
    								$('.jpkcTabs>div').removeClass('check')
    								$(this).addClass('check')
    								$('.jpkcTab .jpktabd').css('display', 'none')
    								$('.' + e.currentTarget.dataset.id).show()
    							})
    						</script>
    
    					</div>
    				</div>
    
    				<div class="zxarts ">
    					<div class="rightdTitle flexRow">
    						<div class="title-left flexRow"> <b></b>
    							<p>最新文章</p>
    						</div>
    						<a class="rititle-more flexRow" href="" title="最新文章" target="_blank"><span>更多</span><b></b></a>
    					</div>
    					<div class="xgwzlist ">
    													<div class="xgwzlid flexRow"><b></b><a target="_blank" title="Vue 组件中合理使用 $emit:性能与设计的最佳实践" href="/faq/2080317.html">Vue 组件中合理使用 $emit:性能与设计的最佳实践</a></div>
    													<div class="xgwzlid flexRow"><b></b><a target="_blank" title="如何使用 querySelector 实现多标签内容的模糊搜索过滤" href="/faq/2080298.html">如何使用 querySelector 实现多标签内容的模糊搜索过滤</a></div>
    													<div class="xgwzlid flexRow"><b></b><a target="_blank" title="HTML5在小程序环境调用JS插件行吗_跨平台边界说清【解答】" href="/faq/2080297.html">HTML5在小程序环境调用JS插件行吗_跨平台边界说清【解答】</a></div>
    													<div class="xgwzlid flexRow"><b></b><a target="_blank" title="html5怎么设置边框实线_html52d绘图加实线边框法【详解】" href="/faq/2080274.html">html5怎么设置边框实线_html52d绘图加实线边框法【详解】</a></div>
    													<div class="xgwzlid flexRow"><b></b><a target="_blank" title="如何控制 CSS 过渡动画的延迟与反向执行顺序" href="/faq/2080255.html">如何控制 CSS 过渡动画的延迟与反向执行顺序</a></div>
    													<div class="xgwzlid flexRow"><b></b><a target="_blank" title="html5改格式手机浏览器_直接改格式限制解答【解答】" href="/faq/2080250.html">html5改格式手机浏览器_直接改格式限制解答【解答】</a></div>
    													<div class="xgwzlid flexRow"><b></b><a target="_blank" title="HTML5小游戏排行榜怎么做_在线提交与展示接口对接方法【方法】" href="/faq/2080235.html">HTML5小游戏排行榜怎么做_在线提交与展示接口对接方法【方法】</a></div>
    													<div class="xgwzlid flexRow"><b></b><a target="_blank" title="HTML5怎么标注重点在Safari与Chrome表现差异在哪_渲染引擎区别说明【介绍】" href="/faq/2080225.html">HTML5怎么标注重点在Safari与Chrome表现差异在哪_渲染引擎区别说明【介绍】</a></div>
    													<div class="xgwzlid flexRow"><b></b><a target="_blank" title="HTML5动画怎么做减少重绘提升性能_分层与合成技巧【技巧】" href="/faq/2080214.html">HTML5动画怎么做减少重绘提升性能_分层与合成技巧【技巧】</a></div>
    													<div class="xgwzlid flexRow"><b></b><a target="_blank" title="如何通过下拉框选择自动传递参数并跳转页面" href="/faq/2080209.html">如何通过下拉框选择自动传递参数并跳转页面</a></div>
    											</div>
    
    				</div>
    
    
    
    
    
    
    			</div>
    
    
    
    		</div>
    
    	</div>
    	<!--底部-->
    	<div class="phpFoot">
        <div class="phpFootIn">
            <div class="phpFootCont">
                <div class="phpFootLeft">
                    <dl>
                        <dt>
                            <a target="_blank"  href="/about/us.html" rel="nofollow"  title="关于我们" class="cBlack">关于我们</a>
                            <a target="_blank"  href="/about/disclaimer.html" rel="nofollow"  title="免责申明" class="cBlack">免责申明</a>
                            <a target="_blank"  href="/about/jbzx.html" rel="nofollow"  title="举报中心" class="cBlack">举报中心</a>
                            <a   href="javascript:;" rel="nofollow" onclick="advice_data(99999999,'意见反馈')"   title="意见反馈" class="cBlack">意见反馈</a>
                            <a target="_blank"  href="https://www.php.cn/teacher.html" rel="nofollow"   title="讲师合作" class="cBlack">讲师合作</a>
                            <a  target="_blank" href="https://www.php.cn/blog/detail/20304.html" rel="nofollow"  title="广告合作" class="cBlack">广告合作</a>
                            <a  target="_blank" href="/new/"    title="最新文章列表" class="cBlack">最新更新</a>
                                                    <div class="clear"></div>
                        </dt>
                        <dd class="cont1">php中文网:公益在线php培训,帮助PHP学习者快速成长!</dd>
                        <dd class="cont2">
                          <span class="ylwTopBox">
                            <a   href="javascript:;"  class="cBlack"><b class="icon1"></b>关注服务号</a>
                            <em style="display:none;" class="ylwTopSub">
                              <p>微信扫码<br/>关注PHP中文网服务号</p>
                              <img src="/static/images/examples/text16.png"/>
                            </em>
                          </span>
                            <span class="ylwTopBox">
                            <a   href="tencent://message/?uin=27220243&Site=www.php.cn&Menu=yes"  class="cBlack"><b class="icon2"></b>技术交流群</a>
                            <em style="display:none;" class="ylwTopSub">
                              <p>QQ扫码<br/>加入技术交流群</p>
                              <img src="/static/images/examples/text18.png"/>
                            </em>
                          </span>
                            <div class="clear"></div>
                        </dd>
                    </dl>
                    
                </div>
                <div class="phpFootRight">
                    <div class="phpFootMsg">
                        <span><img src="/static/images/examples/text17.png"/></span>
                        <dl>
                            <dt>PHP中文网订阅号</dt>
                            <dd>每天精选资源文章推送</dd>
                        </dl>
                    </div>
                </div>
            </div>
        </div>
        <div class="phpFootCode">
            <div class="phpFootCodeIn"><p>Copyright 2014-2026 <a   href="https://www.php.cn/" >https://www.php.cn/</a> All Rights Reserved | php.cn | <a   href="https://beian.miit.gov.cn/" rel="nofollow" >湘ICP备2023035733号</a></p><a   href="http://www.beian.gov.cn/portal/index.do" rel="nofollow" ><b></b></a></div>
        </div>
    </div>
    <input type="hidden" id="verifycode" value="/captcha.html">
    <script>
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?c0e685c8743351838d2a7db1c49abd56";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
    <script>layui.use(['element', 'carousel'], function () {var element = layui.element;$ = layui.jquery;var carousel = layui.carousel;carousel.render({elem: '#test1', width: '100%', height: '330px', arrow: 'always'});$.getScript('/static/js/jquery.lazyload.min.js', function () {$("img").lazyload({placeholder: "/static/images/load.jpg", effect: "fadeIn", threshold: 200, skip_invisible: false});});});</script>
    
    <span class="layui-hide"><script type="text/javascript" src="https://s4.cnzz.com/z_stat.php?id=1280886301&web_id=1280886301"></script></span>
    
    <script src="/static/js/cdn.js?v=1.0.1"></script>
    
    
    
    	<!--底部 end-->
    	<!-- content -->
    	<!--
        <div class="phpFudong">
            <div class="phpFudongIn">
                <div class="phpFudongImg"></div>
                <div class="phpFudongXue">登录PHP中文网,和优秀的人一起学习!</div>
                <div class="phpFudongQuan">全站<span>2000+</span>教程免费学</div>
                <div class="phpFudongCode"><a   href="javascript:;" id="login" title="微信扫码登录">微信扫码登录</a></div>
                <div class="phpGuanbi" onclick="$('.phpFudong').hide();"></div>
                <div class="clear"></div>
            </div>
        </div>
    -->	<!--底部浮动层 end-->
    	<!--侧导航-->
    	<style>
        .layui-fixbar{display: none;}
    </style>
    <div class="phpSdhBox" style="height:240px !important;">
        <li>
            <div class="phpSdhIn">
                <div class="phpSdhTitle">
                    <a   href="/k24.html"  class="hover" title="PHP学习">
                        <b class="icon1"></b>
                        <p>PHP学习</p>
                    </a>
                </div>
            </div>
        </li>
        <li>
            <div class="phpSdhIn">
                <div class="phpSdhTitle">
                    <a   href="https://www.php.cn/blog/detail/1047189.html" >
                        <b class="icon2"></b>
                        <p>技术支持</p>
                    </a>
                </div>
            </div>
        </li>
        <li>
            <div class="phpSdhIn">
                <div class="phpSdhTitle">
                    <a   href="#">
                        <b class="icon6"></b>
                        <p>返回顶部</p>
                    </a>
                </div>
            </div>
        </li>
    </div>
    	</body>
    
    </html>
    
    <script type="text/javascript" src="/hitsUp?type=article&id=2080456&time=1770527292">
    </script>
    <script src="/static/ueditor/third-party/SyntaxHighlighter/shCore.js?1770527292"></script>
    <script>
    	article_status = "1522149";
    </script>
    <input type="hidden" id="verifycode" value="/captcha.html">
    <script type="text/javascript" src="/static/js/global.min.js?5.5.33"></script>
    <link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css?2' type='text/css' media='all' />
    <script type='text/javascript' src='/static/js/viewer.min.js?1'></script>
    <script type='text/javascript' src='/static/js/jquery-viewer.min.js'></script>
    <script type="text/javascript" src="/static/js/jquery.cookie.js"></script>
    <script>var _hmt = _hmt || [];(function(){var hm = document.createElement("script");hm.src="//hm.baidu.com/hm.js?c0e685c8743351838d2a7db1c49abd56";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm, s);})();(function(){var bp = document.createElement('script');var curProtocol = window.location.protocol.split(':')[0];if(curProtocol === 'https'){bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';}else{bp.src = 'http://push.zhanzhang.baidu.com/push.js';};var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(bp, s);})();</script>
    	
    
    <script>
    	function setCookie(name, value, iDay) { //name相当于键,value相当于值,iDay为要设置的过期时间(天)
    		var oDate = new Date();
    		oDate.setDate(oDate.getDate() + iDay);
    		document.cookie = name + '=' + value + ';path=/;domain=.php.cn;expires=' + oDate;
    	}
    
    	function getCookie(name) {
    		var cookieArr = document.cookie.split(";");
    		for (var i = 0; i < cookieArr.length; i++) {
    			var cookiePair = cookieArr[i].split("=");
    			if (name == cookiePair[0].trim()) {
    				return decodeURIComponent(cookiePair[1]);
    			}
    		}
    		return null;
    	}
    </script>
    
    
    <!-- Matomo -->
    <script>
    	var _paq = window._paq = window._paq || [];
    	/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
    	_paq.push(['trackPageView']);
    	_paq.push(['enableLinkTracking']);
    	(function () {
    		var u = "https://tongji.php.cn/";
    		_paq.push(['setTrackerUrl', u + 'matomo.php']);
    		_paq.push(['setSiteId', '11']);
    		var d = document,
    			g = d.createElement('script'),
    			s = d.getElementsByTagName('script')[0];
    		g.async = true;
    		g.src = u + 'matomo.js';
    		s.parentNode.insertBefore(g, s);
    	})();
    </script>
    <!-- End Matomo Code -->
    
    <script>
    	setCookie('is_article', 1, 1);
    </script>
    
    <script>
    	var is_login = "0";
            var show = 0;
            var ceng = getCookie('ceng');
            //未登录复制显示登录按钮
            if(is_login == 0 && false){
                $(".code").hover(function(){
                    $(this).find('.contentsignin').show();
                },function(){
                    $(this).find('.contentsignin').hide();
                });
                //不给复制
                $('.code').bind("cut copy paste",function(e) {
                    e.preventDefault();
                });
                $('.code .contentsignin').click(function(){
                    $(document).trigger("api.loginpopbox");
                })
            }else{
                // 获取所有的 <pre> 元素
                var preElements = document.querySelectorAll('pre');
                preElements.forEach(function(preElement) {
                    // 创建复制按钮
                    var copyButton = document.createElement('button');
                    copyButton.className = 'copy-button';
                    copyButton.textContent = '复制';
                    // 添加点击事件处理程序
                    copyButton.addEventListener('click', function() {
                        // 获取当前按钮所属的 <pre> 元素中的文本内容
                        var textContent = preElement.textContent.trim();
                        // 创建一个临时 textarea 元素并设置其值为 <pre> 中的文本内容
                        var tempTextarea = document.createElement('textarea');
                        tempTextarea.value = textContent;
                        // 将临时 textarea 添加到文档中
                        document.body.appendChild(tempTextarea);
                        // 选中临时 textarea 中的文本内容并执行复制操作
                        tempTextarea.select();
                        document.execCommand('copy');
                        // 移除临时 textarea 元素
                        document.body.removeChild(tempTextarea);
                        // 更新按钮文本为 "已复制"
                        this.textContent = '已复制';
                    });
    
                    // 创建AI写代码按钮
                    var aiButton = document.createElement('button');
                    aiButton.className = 'copy-button';
                    aiButton.textContent = 'AI写代码';
                    aiButton.style.marginLeft = '5px';
                    aiButton.style.marginRight = '5px';
                    // 添加点击事件处理程序
                    aiButton.addEventListener('click', function() {
                    // Generate a random number between 0 and 1
                            var randomChance = Math.random();
    
                        // If the random number is less than 0.5, open the first URL, else open the second
                        if (randomChance < 0.5) {
                            window.open('https://www.doubao.com/chat/coding?channel=php&source=hw_db_php', '_blank');
                        } else {
                            window.open('https://click.aliyun.com/m/1000402709/', '_blank');
                        }
                    });
    
                    // 将按钮添加到 <pre> 元素前面
                    preElement.parentNode.insertBefore(copyButton, preElement);
                    preElement.parentNode.insertBefore(aiButton, preElement);
            });
            }
    </script>