HTML中头部标签的用法

一个新手
发布: 2017-10-23 10:20:56
原创
2743人浏览过

  head 元素包含了所有的头部标签元素,可以添加在头部区域的元素标签为:

  、<style>、<meta>、<link>、<script>、<noscript>、<base></style> </title></span></span></p> <p><span style="font-size: 14pt; font-family: 'Microsoft YaHei';"><span style="font-size: 16px;"> 下面将一一解释各标签的作用</span></span></p> <p><strong><span style="font-size: 14pt;"><span style="font-size: 16px;"><title></title></span></span></strong></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> <ol class=" list-paddingleft-2"> <li><p><span style="font-size: 14pt; font-family: 'Microsoft YaHei';"><span style="font-size: 16px;">用于定义不同文档的标题</span></span></p></li> <li><p><span style="font-size: 14pt; font-family: 'Microsoft YaHei';"><span style="font-size: 16px;">定义浏览器工具栏的标题</span></span></p></li> <li><p><span style="font-size: 14pt; font-family: 'Microsoft YaHei';"><span style="font-size: 16px;">当网页添加至收藏夹,显示在收藏夹中的标题</span></span></p> <div class="aritcle_card"> <a class="aritcle_card_img" href="/xiazai/code/10684"> <img src="https://img.php.cn/upload/webcode/000/000/013/176327820790052.jpg" alt="传媒公司模板(RTCMS)1.0"> </a> <div class="aritcle_card_info"> <a href="/xiazai/code/10684">传媒公司模板(RTCMS)1.0</a> <p>传媒企业网站系统使用热腾CMS(RTCMS),根据网站板块定制的栏目,如果修改栏目,需要修改模板相应的标签。站点内容均可在后台网站基本设置中添加。全站可生成HTML,安装默认动态浏览。并可以独立设置SEO标题、关键字、描述信息。源码包中带有少量测试数据,安装时可选择演示安装或全新安装。如果全新安装,后台内容充实后,首页才能完全显示出来。(全新安装后可以删除演示数据用到的图片,目录在https://</p> <div class=""> <img src="/static/images/card_xiazai.png" alt="传媒公司模板(RTCMS)1.0"> <span>0</span> </div> </div> <a href="/xiazai/code/10684" class="aritcle_card_btn"> <span>查看详情</span> <img src="/static/images/cardxiayige-3.png" alt="传媒公司模板(RTCMS)1.0"> </a> </div> </li> <li><p><span style="font-size: 14pt; font-family: 'Microsoft YaHei';"><span style="font-size: 16px;">显示在搜索引擎结果页面的标题</span></span></p></li> </ol> <p class="cnblogs_code"><br></p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false;"> eg: &lt;title&gt; 我是标题 &lt;/title&gt;</pre><div class="contentsignin">登录后复制</div></div><h3 class="public-p-title"><span style="font-size: 16px;"><base></span></h3><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="public-pre">&lt;span style=&quot;font-size: 15px;&quot;&gt;&lt;span style=&quot;font-family: 'Microsoft YaHei';&quot;&gt; 标签描述了基本的链接地址/链接目标,该标签作为HTML文档中所有的链接标签的默认链接。&lt;/span&gt;&lt;br/&gt;&lt;/span&gt;</pre><div class="contentsignin">登录后复制</div></div><p class="cnblogs_code"><br></p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false;"> eg: &lt;base href=&quot;www.beck.ren/images/&quot; target=&quot;_blank&quot;&gt;&lt;/base&gt;</pre><div class="contentsignin">登录后复制</div></div><h3 class="public-p-title"><span style="font-size: 16px;"><link></span></h3><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="public-pre"> 标签定义了文档与外部资源之间的关系,通常用于链接样式表。</pre><div class="contentsignin">登录后复制</div></div><p class="cnblogs_code"><br></p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false;"> eg: &lt;link type=&quot;text/css&quot; href=&quot;../index.css&quot;&gt;</pre><div class="contentsignin">登录后复制</div></div><h3 class="public-p-title"><span style="font-size: 16px;"><style></style></span></h3><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="public-pre"> 标签定义了HTML文档的样式文件引用地址.内容指定样式渲染HTML文档</pre><div class="contentsignin">登录后复制</div></div><p class="cnblogs_code"><br></p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false;">eg: &lt;style&gt; *{ margin:0; padding: 0; } &lt;style&gt; //css写法</pre><div class="contentsignin">登录后复制</div></div><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="public-pre">&lt;meta&gt;</pre><div class="contentsignin">登录后复制</div></div><ol class=" list-paddingleft-2"> <li><p><span style="font-family: 'Microsoft YaHei';"><span style="font-size: 16px;">meta 标签描述基本的元数据</span><span style="font-size: 15px;"><span style="font-size: 16px;"><strong><br></strong></span></span></span></p></li> <li><p><span style="font-size: 16px; font-family: 'Microsoft YaHei';">浏览器会解析标签提供的元数据,但元数据不会显示在页面上</span></p></li> <li><p><span style="font-size: 16px; font-family: 'Microsoft YaHei';">meta 元素通常用于指定网页的 "描述"、"关键词"、"文件的最后修改时间"、"作者"、......</span></p></li> <li><p><span style="font-size: 16px; font-family: 'Microsoft YaHei';">元数据可以告诉浏览器(如何显示内容或重新加载页面)及搜索引擎(关键词),及其他 web 服务</span></p></li> </ol> <p class="cnblogs_code"><br></p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:js;toolbar:false;">eg: //定义关键字 &lt;meta name=&quot;keywords content=&quot;HTML, CSS, XML, XHTML, JavaScript&quot;&quot;&gt; //定义描述内容 &lt;meta name=&quot;description&quot; content=&quot;Free Web tutorials on HTML and CSS&quot;&gt; //定义作者 &lt;meta name=&quot;author&quot; content=&quot;Hege Refsnes&quot;&gt; //定义每30秒刷新当前页面 &lt;meta http-equiv=&quot;refresh&quot; content=&quot;30&quot;&gt;</pre><div class="contentsignin">登录后复制</div></div><h3 class="public-p-title"><span style="font-size: 16px;"><script></script></span></h3><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="public-pre"> 标签定义了 HTML 文档的 JS 文件引用地址.</pre><div class="contentsignin">登录后复制</div></div><p class="cnblogs_code"><br></p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:js;toolbar:false;">eg: <script src="loading.js"></script></pre><div class="contentsignin">登录后复制</div></div><p>以上就是HTML中头部标签的用法的详细内容,更多请关注php中文网其它相关文章!</p> <div class="wzconBq" style="display: inline-flex;"> <span>相关标签:</span> <div class="wzcbqd" style="display:flex;"> <a onclick="hits_log(2,'www',this);" href-data="/zt/15763.html" target="_blank">html</a> </div> </div> <div class="everysee"> <h2>大家都在看:</h2> <div> <a target="_blank" href="/faq/1870275.html" title="html如何加粗内边框_加粗HTML表格内部边框线条【线条】">html如何加粗内边框_加粗HTML表格内部边框线条【线条】</a> <a target="_blank" href="/faq/1870226.html" title="HTML如何申请地理定位_浏览器API调用指南【教程】">HTML如何申请地理定位_浏览器API调用指南【教程】</a> <a target="_blank" href="/faq/1870221.html" title="HTML文档如何本地运行_浏览器预览与调试步骤【指南】">HTML文档如何本地运行_浏览器预览与调试步骤【指南】</a> <a target="_blank" href="/faq/1870080.html" title="HTML表格如何动态添加行列_JavaScript操作解析【技巧】">HTML表格如何动态添加行列_JavaScript操作解析【技巧】</a> <a target="_blank" href="/faq/1870013.html" title="如何向HTML追加新内容_动态插入元素方法【教程】">如何向HTML追加新内容_动态插入元素方法【教程】</a> </div> </div> </div> </div> <!-- <div class="ask_line-container" > <div class="ask_line"></div> <button type="button" class="ask_text test-iframe-handle"> 没有解决问题?点击使用智能助手 </button> <div class="ask_line"></div> </div> --> <div class="community flexRow newcommunity"> <div class="comleft flexRow newcomlimg"> <a target="_blank" class="newcomlimga" target="_blank" rel="nofollow" href="https://pan.quark.cn/s/f4eedefabd61" title="HTML速学教程(入门课程)" > <img src="https://img.php.cn/upload/Recdownload/000/000/085/66723a3016a41308.jpg" class="comlimg newcomlimg" alt="HTML速学教程(入门课程)"> </a> <div class="comldiv flexColumn newcomldiv"> <a target="_blank" class="comldup newcomldup" target="_blank" rel="nofollow" title="HTML速学教程(入门课程)" href="https://pan.quark.cn/s/f4eedefabd61">HTML速学教程(入门课程)</a> <p class="comlddown newcomlddown">HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!</p> </div> </div> <a target="_blank" class="comright flexRow newcomright" target="_blank" rel="nofollow" href="https://pan.quark.cn/s/f4eedefabd61" title="HTML速学教程(入门课程)"> 下载 </a> </div> <div class="wzconlabels"> <div style="display: inline-flex;float: right; color:#333333;">来源:php中文网</div> </div> <div class="wzconFx"> <a target="_blank" class="wzcf-sc articleICollection " data-id="380580"> <img src="/static/lhimages/shoucang_2x.png"> <span>收藏</span> </a> <a target="_blank" class="wzcf-dz articlegoodICollection " data-id="380580"> <img src="/static/images/images/icon37.png"> <span>点赞</span> </a> </div> <div class="wzconOtherwz"> <a target="_blank" href="/faq/380577.html"> <span>上一篇:Ionic构建侧边栏 轮播图 加载动画的方法</span> </a> <a target="_blank" href="/faq/380588.html"> <span>下一篇:关于BFC与高度塌陷的问题</span> </a> </div> <div class="wzconShengming"> <img src="/static/images/images/benzhanshengming.png" /> <div>本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn</div> </div> <!-- PC-文章底部 --> <div class="wzconZzwz"> <div class="wzconZzwztitle">作者最新文章</div> <ul> <li> <div class="wzczzwzli"> <span class="layui-badge-dots"></span> <a target="_blank" target="_blank" href="/faq/377990.html" title="phpcn{$vo.title}">JavaScript数组去重算法实例</a> </div> <div>1970-01-01 08:00:00</div> </li> <li> <div class="wzczzwzli"> <span class="layui-badge-dots"></span> <a target="_blank" target="_blank" href="/faq/379278.html" title="phpcn{$vo.title}">如何解决关于thinkphp模型中hasOne中字段同名的问题</a> </div> <div>1970-01-01 08:00:00</div> </li> <li> <div class="wzczzwzli"> <span class="layui-badge-dots"></span> <a target="_blank" target="_blank" href="/faq/379567.html" title="phpcn{$vo.title}">关于Js中 find 方法不支持IE的问题</a> </div> <div>1970-01-01 08:00:00</div> </li> <li> <div class="wzczzwzli"> <span class="layui-badge-dots"></span> <a target="_blank" target="_blank" href="/faq/379696.html" title="phpcn{$vo.title}">Centos下yum怎么安装php7?</a> </div> <div>2023-03-16 13:36:01</div> </li> <li> <div class="wzczzwzli"> <span class="layui-badge-dots"></span> <a target="_blank" target="_blank" href="/faq/380259.html" title="phpcn{$vo.title}">通过手机浏览器打开APP或者跳转到下载页面的实现</a> </div> <div>1970-01-01 08:00:00</div> </li> <li> <div class="wzczzwzli"> <span class="layui-badge-dots"></span> <a target="_blank" target="_blank" href="/faq/380291.html" title="phpcn{$vo.title}">从给数组中的对象去重看js中的reduce()</a> </div> <div>2023-03-16 16:56:01</div> </li> <li> <div class="wzczzwzli"> <span class="layui-badge-dots"></span> <a target="_blank" target="_blank" href="/faq/380387.html" title="phpcn{$vo.title}">还原数据库,数据库提示正在还原中的处理方法</a> </div> <div>1970-01-01 08:00:00</div> </li> <li> <div class="wzczzwzli"> <span class="layui-badge-dots"></span> <a target="_blank" target="_blank" href="/faq/380418.html" title="phpcn{$vo.title}">如何解决vue 集成 axios 发送post请求 payload导致后台无法接收到数据问题 </a> </div> <div>1970-01-01 08:00:00</div> </li> <li> <div class="wzczzwzli"> <span class="layui-badge-dots"></span> <a target="_blank" target="_blank" href="/faq/380510.html" title="phpcn{$vo.title}">Javascript中pixi框架初探</a> </div> <div>1970-01-01 08:00:00</div> </li> <li> <div class="wzczzwzli"> <span class="layui-badge-dots"></span> <a target="_blank" target="_blank" href="/faq/380556.html" title="phpcn{$vo.title}">JavaScript实现“创意时钟”项目 </a> </div> <div>1970-01-01 08:00:00</div> </li> </ul> </div> <div class="wzconZzwz"> <div class="wzconZzwztitle">最新问题</div> <div class="wdsyContent"> <div class="wdsyConDiv flexRow wdsyConDiv1"> <div class="wdcdContent flexColumn"> <a target="_blank" href="/faq/1870425.html" target="_blank" title="HTML如何投稿至开源平台_代码分享流程解析【方案】" class="wdcdcTitle">HTML如何投稿至开源平台_代码分享流程解析【方案】</a> <a target="_blank" href="/faq/1870425.html" class="wdcdcCons">投稿HTML代码至开源平台需五步:一、规范代码并配README;二、注册GitHub/GitLab/Gitee账户;三、本地初始化Git仓库并关联远程;四、添加MIT许可证及更新README;五、推送代码并启用Pages部署。</a> <div class="wdcdcInfo flexRow"> <div class="wdcdcileft"> <span class="wdcdciSpan">2025-12-20 16:04:02</span> </div> <div class="wdcdciright flexRow"> <a target="_blank" class="wdcdcirwatch flexRow"><img src="/static/images/images/icon43.png" class="wdcdcirwatchi">999</a> </div> </div> </div> </div> <div class="wdsyConLine wdsyConLine2"></div> <div class="wdsyConDiv flexRow wdsyConDiv1"> <div class="wdcdContent flexColumn"> <a target="_blank" href="/faq/1870410.html" target="_blank" title="html表单域如何居中_HTML表单输入框居中布局技巧【布局】" class="wdcdcTitle">html表单域如何居中_HTML表单输入框居中布局技巧【布局】</a> <a target="_blank" href="/faq/1870410.html" class="wdcdcCons">HTML表单输入框水平居中可通过五种CSS方法实现:一、text-align配合块级容器;二、margin:0auto配固定宽度;三、Flexbox的justify-content:center;四、Grid的place-items:center;五、绝对定位加transform。</a> <div class="wdcdcInfo flexRow"> <div class="wdcdcileft"> <span class="wdcdciSpan">2025-12-20 15:59:28</span> </div> <div class="wdcdciright flexRow"> <a target="_blank" class="wdcdcirwatch flexRow"><img src="/static/images/images/icon43.png" class="wdcdcirwatchi">435</a> </div> </div> </div> </div> <div class="wdsyConLine wdsyConLine2"></div> <div class="wdsyConDiv flexRow wdsyConDiv1"> <div class="wdcdContent flexColumn"> <a target="_blank" href="/faq/1870407.html" target="_blank" title="html如何定义根书签_HTML中创建文档根级书签锚点【锚点】" class="wdcdcTitle">html如何定义根书签_HTML中创建文档根级书签锚点【锚点】</a> <a target="_blank" href="/faq/1870407.html" class="wdcdcCons">应在HTML文档中使用id="top"定义根级锚点,如在或元素添加该属性,并通过跳转;也可用已废弃但兼容的,或用JavaScript调用document.documentElement.scrollIntoView()实现平滑滚动至页面顶端。</a> <div class="wdcdcInfo flexRow"> <div class="wdcdcileft"> <span class="wdcdciSpan">2025-12-20 15:58:55</span> </div> <div class="wdcdciright flexRow"> <a target="_blank" class="wdcdcirwatch flexRow"><img src="/static/images/images/icon43.png" class="wdcdcirwatchi">602</a> </div> </div> </div> </div> <div class="wdsyConLine wdsyConLine2"></div> <div class="wdsyConDiv flexRow wdsyConDiv1"> <div class="wdcdContent flexColumn"> <a target="_blank" href="/faq/1870281.html" target="_blank" title="html 如何 动态_实现HTML内容动态更新效果【更新】" class="wdcdcTitle">html 如何 动态_实现HTML内容动态更新效果【更新】</a> <a target="_blank" href="/faq/1870281.html" class="wdcdcCons">需用JavaScript操作DOM实现网页动态更新:一、innerHTML直接替换HTML;二、textContent仅更新纯文本;三、insertAdjacentHTML在指定位置插入HTML;四、DocumentFragment批量添加节点提升性能;五、dataset配合自定义属性驱动语义化切换。</a> <div class="wdcdcInfo flexRow"> <div class="wdcdcileft"> <span class="wdcdciSpan">2025-12-20 15:23:45</span> </div> <div class="wdcdciright flexRow"> <a target="_blank" class="wdcdcirwatch flexRow"><img src="/static/images/images/icon43.png" class="wdcdcirwatchi">924</a> </div> </div> </div> </div> <div class="wdsyConLine wdsyConLine2"></div> <div class="wdsyConDiv flexRow wdsyConDiv1"> <div class="wdcdContent flexColumn"> <a target="_blank" href="/faq/1870275.html" target="_blank" title="html如何加粗内边框_加粗HTML表格内部边框线条【线条】" class="wdcdcTitle">html如何加粗内边框_加粗HTML表格内部边框线条【线条】</a> <a target="_blank" href="/faq/1870275.html" class="wdcdcCons">HTML表格内部边框加粗有四种方法:一、用border-collapse:separate配合border-width;二、用border-collapse:collapse并增大border-width;三、仅加粗内部分割线;四、用伪元素模拟加粗线条。</a> <div class="wdcdcInfo flexRow"> <div class="wdcdcileft"> <span class="wdcdciSpan">2025-12-20 15:22:02</span> </div> <div class="wdcdciright flexRow"> <a target="_blank" class="wdcdcirwatch flexRow"><img src="/static/images/images/icon43.png" class="wdcdcirwatchi">752</a> </div> </div> </div> </div> <div class="wdsyConLine wdsyConLine2"></div> <div class="wdsyConDiv flexRow wdsyConDiv1"> <div class="wdcdContent flexColumn"> <a target="_blank" href="/faq/1870256.html" target="_blank" title="html5如何添加字体_html5字体添加方法【样式设置】" class="wdcdcTitle">html5如何添加字体_html5字体添加方法【样式设置】</a> <a target="_blank" href="/faq/1870256.html" class="wdcdcCons">HTML5页面添加自定义字体有五种方法:一、用@font-face引入本地字体文件;二、通过GoogleFonts嵌入网络字体;三、用font-display控制加载行为;四、用CSS变量统一管理字体族;五、用local()优先调用系统已安装字体。</a> <div class="wdcdcInfo flexRow"> <div class="wdcdcileft"> <span class="wdcdciSpan">2025-12-20 15:17:02</span> </div> <div class="wdcdciright flexRow"> <a target="_blank" class="wdcdcirwatch flexRow"><img src="/static/images/images/icon43.png" class="wdcdcirwatchi">666</a> </div> </div> </div> </div> <div class="wdsyConLine wdsyConLine2"></div> <div class="wdsyConDiv flexRow wdsyConDiv1"> <div class="wdcdContent flexColumn"> <a target="_blank" href="/faq/1870226.html" target="_blank" title="HTML如何申请地理定位_浏览器API调用指南【教程】" class="wdcdcTitle">HTML如何申请地理定位_浏览器API调用指南【教程】</a> <a target="_blank" href="/faq/1870226.html" class="wdcdcCons">若浏览器未返回地理坐标,原因可能是用户拒绝权限、浏览器不支持或页面未通过HTTPS加载;需依次检查协议安全性、API可用性、权限请求时机、错误处理逻辑、定位选项配置及位置变化监听机制。</a> <div class="wdcdcInfo flexRow"> <div class="wdcdcileft"> <span class="wdcdciSpan">2025-12-20 15:08:03</span> </div> <div class="wdcdciright flexRow"> <a target="_blank" class="wdcdcirwatch flexRow"><img src="/static/images/images/icon43.png" class="wdcdcirwatchi">623</a> </div> </div> </div> </div> <div class="wdsyConLine wdsyConLine2"></div> <div class="wdsyConDiv flexRow wdsyConDiv1"> <div class="wdcdContent flexColumn"> <a target="_blank" href="/faq/1870221.html" target="_blank" title="HTML文档如何本地运行_浏览器预览与调试步骤【指南】" class="wdcdcTitle">HTML文档如何本地运行_浏览器预览与调试步骤【指南】</a> <a target="_blank" href="/faq/1870221.html" class="wdcdcCons">应使用UTF-8无BOM编码保存HTML文件,双击或通过浏览器“打开文件”加载,用开发者工具调试,涉及跨域或现代API时需启动本地HTTP服务器。</a> <div class="wdcdcInfo flexRow"> <div class="wdcdcileft"> <span class="wdcdciSpan">2025-12-20 15:06:02</span> </div> <div class="wdcdciright flexRow"> <a target="_blank" class="wdcdcirwatch flexRow"><img src="/static/images/images/icon43.png" class="wdcdcirwatchi">938</a> </div> </div> </div> </div> <div class="wdsyConLine wdsyConLine2"></div> <div class="wdsyConDiv flexRow wdsyConDiv1"> <div class="wdcdContent flexColumn"> <a target="_blank" href="/faq/1870080.html" target="_blank" title="HTML表格如何动态添加行列_JavaScript操作解析【技巧】" class="wdcdcTitle">HTML表格如何动态添加行列_JavaScript操作解析【技巧】</a> <a target="_blank" href="/faq/1870080.html" class="wdcdcCons">JavaScript可通过五种方式动态操作表格:一、用insertRow(-1)和insertCell()添加行;二、遍历rows插入新列;三、克隆现有行并重置ID与事件;四、createElement手动构建行;五、用deleteRow/deleteCell删除行列。</a> <div class="wdcdcInfo flexRow"> <div class="wdcdcileft"> <span class="wdcdciSpan">2025-12-20 14:21:57</span> </div> <div class="wdcdciright flexRow"> <a target="_blank" class="wdcdcirwatch flexRow"><img src="/static/images/images/icon43.png" class="wdcdcirwatchi">576</a> </div> </div> </div> </div> <div class="wdsyConLine wdsyConLine2"></div> <div class="wdsyConDiv flexRow wdsyConDiv1"> <div class="wdcdContent flexColumn"> <a target="_blank" href="/faq/1870068.html" target="_blank" title="chrome如何使用html5_Chrome浏览器HTML5功能启用设置【使用】" class="wdcdcTitle">chrome如何使用html5_Chrome浏览器HTML5功能启用设置【使用】</a> <a target="_blank" href="/faq/1870068.html" class="wdcdcCons">Chrome中HTML5功能异常需依次更新浏览器、启用chrome://flags中的实验性Web平台特性、调整声音设置允许自动播放、开启硬件加速并确认WebGL硬件加速生效、禁用干扰HTML5的扩展程序。</a> <div class="wdcdcInfo flexRow"> <div class="wdcdcileft"> <span class="wdcdciSpan">2025-12-20 14:18:49</span> </div> <div class="wdcdciright flexRow"> <a target="_blank" class="wdcdcirwatch flexRow"><img src="/static/images/images/icon43.png" class="wdcdcirwatchi">357</a> </div> </div> </div> </div> <div class="wdsyConLine wdsyConLine2"></div> </div> </div> <div class="wzconZt" > <div class="wzczt-title"> <div>相关专题</div> <a target="_blank" href="/faq/zt" target="_blank">更多> </a> </div> <div class="wzcttlist"> <ul> <li class="ul-li"> <a target="_blank" target="_blank" href="/faq/jncmxybfkz"><img onerror="this.onerror=''; this.src='/static/images/default1.png'" src="https://img.php.cn/upload/subject/202512/19/2025121912064929186.jpg?x-oss-process=image/resize,m_fill,h_145,w_220" /> </a> <a target="_blank" target="_blank" href="/faq/jncmxybfkz" class="title-a-spanl"><span>Java 内存模型与并发控制</span> </a> </li> <li class="ul-li"> <a target="_blank" target="_blank" href="/faq/gzjjkfywfwjg"><img onerror="this.onerror=''; this.src='/static/images/default1.png'" src="https://img.php.cn/upload/subject/202512/18/2025121817473461940.jpg?x-oss-process=image/resize,m_fill,h_145,w_220" /> </a> <a target="_blank" target="_blank" href="/faq/gzjjkfywfwjg" class="title-a-spanl"><span>Golang 中间件开发与微服务架构</span> </a> </li> <li class="ul-li"> <a target="_blank" target="_blank" href="/faq/cncglyznzz"><img onerror="this.onerror=''; this.src='/static/images/default1.png'" src="https://img.php.cn/upload/subject/202512/18/2025121817444598952.jpg?x-oss-process=image/resize,m_fill,h_145,w_220" /> </a> <a target="_blank" target="_blank" href="/faq/cncglyznzz" class="title-a-spanl"><span>C++ 内存管理与智能指针</span> </a> </li> <li class="ul-li"> <a target="_blank" target="_blank" href="/faq/quxjg$csys"><img onerror="this.onerror=''; this.src='/static/images/default1.png'" src="https://img.php.cn/upload/subject/202512/17/2025121717472540270.jpg?x-oss-process=image/resize,m_fill,h_145,w_220" /> </a> <a target="_blank" target="_blank" href="/faq/quxjg$csys" class="title-a-spanl"><span>^quxjg$c啥意思</span> </a> </li> <li class="ul-li"> <a target="_blank" target="_blank" href="/faq/dnxspbldszjyk"><img onerror="this.onerror=''; this.src='/static/images/default1.png'" src="https://img.php.cn/upload/subject/202512/17/2025121717385189523.jpg?x-oss-process=image/resize,m_fill,h_145,w_220" /> </a> <a target="_blank" target="_blank" href="/faq/dnxspbldszjyk" class="title-a-spanl"><span>电脑显示屏不亮但是主机已开机</span> </a> </li> <li class="ul-li"> <a target="_blank" target="_blank" href="/faq/cadkjmljcdq"><img onerror="this.onerror=''; this.src='/static/images/default1.png'" src="https://img.php.cn/upload/subject/202512/17/2025121716420040169.jpg?x-oss-process=image/resize,m_fill,h_145,w_220" /> </a> <a target="_blank" target="_blank" href="/faq/cadkjmljcdq" class="title-a-spanl"><span>cad快捷命令教程大全</span> </a> </li> <li class="ul-li"> <a target="_blank" target="_blank" href="/faq/xxtrkdq"><img onerror="this.onerror=''; this.src='/static/images/default1.png'" src="https://img.php.cn/upload/subject/202512/17/2025121716365527780.jpg?x-oss-process=image/resize,m_fill,h_145,w_220" /> </a> <a target="_blank" target="_blank" href="/faq/xxtrkdq" class="title-a-spanl"><span>学习通入口大全</span> </a> </li> <li class="ul-li"> <a target="_blank" target="_blank" href="/faq/jmaigfwy"><img onerror="this.onerror=''; this.src='/static/images/default1.png'" src="https://img.php.cn/upload/subject/000/000/080/6941185a5deae369.png?x-oss-process=image/resize,m_fill,h_145,w_220" /> </a> <a target="_blank" target="_blank" href="/faq/jmaigfwy" class="title-a-spanl"><span>即梦AI官方网页 即梦AI官方正版登录入口</span> </a> </li> </ul> </div> </div> <div class="wzcongg"><script type="text/javascript" src="https://teacher.php.cn/php/NzIzNmE5NjBlOTgwNWZlNTMzN2E0MGEzNmU3NjM3NmI6Og==" ></script></div> </div> </div> <div class="phpwzright"> <div class="wzrOne" style="margin-bottom:31px; padding:0px; width: 366px;"> <script type="text/javascript" src="https://teacher.php.cn/php/N2Q0ODk3NTAwZTFmODQ1NGM4Y2VjYzQzZTVkOTI5NDk6Og==" ></script> <!-- <script type="text/javascript" smua="d=p&s=b&u=u2839468&w=366&h=270" src="https://www.nkscdn.com/smu/o.js"></script> --> </div> <div class="wzrOne"> <div class="wzroTitle">热门推荐</div> <div class="wzroList"> <ul> <li> <div class="wzczzwzli"> <span class="layui-badge-dots wzrolr"></span> <a target="_blank" style="height: auto;" href="/faq/1870460.html">怎么查看html运行后代码_查看html运行后代码方法【技巧】</a> </div> </li> <li> <div class="wzczzwzli"> <span class="layui-badge-dots wzrolr"></span> <a target="_blank" style="height: auto;" href="/faq/1870425.html">HTML如何投稿至开源平台_代码分享流程解析【方案】</a> </div> </li> <li> <div class="wzczzwzli"> <span class="layui-badge-dots wzrolr"></span> <a target="_blank" style="height: auto;" href="/faq/1870410.html">html表单域如何居中_HTML表单输入框居中布局技巧【布局】</a> </div> </li> <li> <div class="wzczzwzli"> <span class="layui-badge-dots wzrolr"></span> <a target="_blank" style="height: auto;" href="/faq/1870407.html">html如何定义根书签_HTML中创建文档根级书签锚点【锚点】</a> </div> </li> <li> <div class="wzczzwzli"> <span class="layui-badge-dots wzrolr"></span> <a target="_blank" style="height: auto;" href="/faq/1870281.html">html 如何 动态_实现HTML内容动态更新效果【更新】</a> </div> </li> <li> <div class="wzczzwzli"> <span class="layui-badge-dots wzrolr"></span> <a target="_blank" style="height: auto;" target="_blank" rel="nofollow" href="https://pan.quark.cn/s/f4eedefabd61" title="HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!"><b>HTML速学教程(入门课程)</b></a> </div> </li> </ul> </div> </div> <div class="wzrTwo"> </div> <div class="wzrTwo"> <div style="position: relative;"><a target="_blank" class="" href="https://teacher.php.cn/jump/67" title="开源免费商场系统" rel="nofollow" target="_blank"><img style="width: 100%; " src="https://img.php.cn/teacher/course/20220930/8ef7a4a308a22ece023e77e5428c0e25.png" alt="开源免费商场系统"></a><span style="position: absolute;right: 5px;border: 1px solid #333;padding: 2px;color: #333;line-height: 14px;font-size: 12px;bottom: 5px;">广告</span></div> </div> <div class="wzrThree"> <div class="wzrthree-title"> <div>热门教程</div> <a target="_blank" target="_blank" href="https://www.php.cn/k.html">更多> </a> </div> <div class="wzrthreelist"> <div class="wzrthreeTab"> <div class="check tabdiv" data-id="one">相关推荐 <div></div></div> <div class="tabdiv" data-id="two">热门推荐<div></div></div> <div class="tabdiv" data-id="three">最新课程<div></div></div> </div> <ul class="one"> <script type="text/javascript" src="https://teacher.php.cn/php/MTJjOWU0YjVmMmE1MzI1OTgyNzRlYmJmYjE0MmZkNWY6Og==" ></script> <li> <a target="_blank" target="_blank" href="/course/1673.html" title="Bootstrap 5教程" class="wzrthreelaimg"> <img src="https://img.php.cn/upload/course/000/000/090/6899a24dcdf73781.png" alt="Bootstrap 5教程"/> </a> <div class="wzrthree-right"> <a target="_blank" target="_blank" href="/course/1673.html">Bootstrap 5教程</a> <div class="wzrthreerb"> <div >24575次学习</div> <a target="_blank" class="courseICollection" data-id="1673"><img src="/static/images/images/icon-small-nocollect.png" class="nofollow">收藏</a> </div> </div> </li> <li> <a target="_blank" target="_blank" href="/course/1672.html" title="AngularJS教程" class="wzrthreelaimg"> <img src="https://img.php.cn/upload/course/000/000/090/68998d18b4142615.png" alt="AngularJS教程"/> </a> <div class="wzrthree-right"> <a target="_blank" target="_blank" href="/course/1672.html">AngularJS教程</a> <div class="wzrthreerb"> <div >18388次学习</div> <a target="_blank" class="courseICollection" data-id="1672"><img src="/static/images/images/icon-small-nocollect.png" class="nofollow">收藏</a> </div> </div> </li> <li> <a target="_blank" target="_blank" href="/course/1660.html" title="CSS教程" class="wzrthreelaimg"> <img src="https://img.php.cn/upload/course/000/000/090/68774990cfb6f919.jpg" alt="CSS教程"/> </a> <div class="wzrthree-right"> <a target="_blank" target="_blank" href="/course/1660.html">CSS教程</a> <div class="wzrthreerb"> <div >152154次学习</div> <a target="_blank" class="courseICollection" data-id="1660"><img src="/static/images/images/icon-small-nocollect.png" class="nofollow">收藏</a> </div> </div> </li> </ul> <ul class="two" style="display: none;"> <li> <a target="_blank" target="_blank" href="/course/1656.html" title="JavaScript ES5基础线上课程教学" class="wzrthreelaimg"> <img src="https://img.php.cn/upload/course/000/000/081/6862652adafef801.png" alt="JavaScript ES5基础线上课程教学"/> </a> <div class="wzrthree-right"> <a target="_blank" target="_blank" href="/course/1656.html">JavaScript ES5基础线上课程教学</a> <div class="wzrthreerb"> <div >68704次学习</div> <a target="_blank" class="courseICollection" data-id="1656"><img src="/static/images/images/icon-small-nocollect.png" class="nofollow">收藏</a> </div> </div> </li> <li> <a target="_blank" target="_blank" href="/course/812.html" title="最新ThinkPHP 5.1全球首发视频教程(60天成就PHP大牛线上培训班课)" class="wzrthreelaimg"> <img src="https://img.php.cn/upload/course/000/000/041/620debc3eab3f377.jpg" alt="最新ThinkPHP 5.1全球首发视频教程(60天成就PHP大牛线上培训班课)"/> </a> <div class="wzrthree-right"> <a target="_blank" target="_blank" href="/course/812.html">最新ThinkPHP 5.1全球首发视频教程(60天成就PHP大牛线上培训班课)</a> <div class="wzrthreerb"> <div >1503458次学习</div> <a target="_blank" class="courseICollection" data-id="812"><img src="/static/images/images/icon-small-nocollect.png" class="nofollow">收藏</a> </div> </div> </li> <li> <a target="_blank" target="_blank" href="/course/639.html" title="phpStudy极速入门视频教程" class="wzrthreelaimg"> <img src="https://img.php.cn/upload/course/000/000/068/62611ef88fcec821.jpg" alt="phpStudy极速入门视频教程"/> </a> <div class="wzrthree-right"> <a target="_blank" target="_blank" href="/course/639.html">phpStudy极速入门视频教程</a> <div class="wzrthreerb"> <div >532095次学习</div> <a target="_blank" class="courseICollection" data-id="639"><img src="/static/images/images/icon-small-nocollect.png" class="nofollow">收藏</a> </div> </div> </li> <li> <a target="_blank" target="_blank" href="/course/379.html" title="独孤九贱(4)_PHP视频教程" class="wzrthreelaimg"> <img src="https://img.php.cn/upload/course/000/000/001/5d1c6dfc9eb09885.jpg" alt="独孤九贱(4)_PHP视频教程"/> </a> <div class="wzrthree-right"> <a target="_blank" target="_blank" href="/course/379.html">独孤九贱(4)_PHP视频教程</a> <div class="wzrthreerb"> <div >1257279次学习</div> <a target="_blank" class="courseICollection" data-id="379"><img src="/static/images/images/icon-small-nocollect.png" class="nofollow">收藏</a> </div> </div> </li> <li> <a target="_blank" target="_blank" href="/course/801.html" title="PHP实战天龙八部之仿爱奇艺电影网站" class="wzrthreelaimg"> <img src="https://img.php.cn/upload/course/000/000/001/5d2426f409839992.jpg" alt="PHP实战天龙八部之仿爱奇艺电影网站"/> </a> <div class="wzrthree-right"> <a target="_blank" target="_blank" href="/course/801.html">PHP实战天龙八部之仿爱奇艺电影网站</a> <div class="wzrthreerb"> <div >773464次学习</div> <a target="_blank" class="courseICollection" data-id="801"><img src="/static/images/images/icon-small-nocollect.png" class="nofollow">收藏</a> </div> </div> </li> </ul> <ul class="three" style="display: none;"> <li> <a target="_blank" target="_blank" href="/course/1696.html" title="最新Python教程 从入门到精通" class="wzrthreelaimg"> <img src="https://img.php.cn/upload/course/000/000/081/68c135bb72783194.png" alt="最新Python教程 从入门到精通"/> </a> <div class="wzrthree-right"> <a target="_blank" target="_blank" href="/course/1696.html">最新Python教程 从入门到精通</a> <div class="wzrthreerb"> <div >5200次学习</div> <a target="_blank" class="courseICollection" data-id="1696"><img src="/static/images/images/icon-small-collect.png" class="nofollow">取消收藏</a> </div> </div> </li> <li> <a target="_blank" target="_blank" href="/course/1656.html" title="JavaScript ES5基础线上课程教学" class="wzrthreelaimg"> <img src="https://img.php.cn/upload/course/000/000/081/6862652adafef801.png" alt="JavaScript ES5基础线上课程教学"/> </a> <div class="wzrthree-right"> <a target="_blank" target="_blank" href="/course/1656.html">JavaScript ES5基础线上课程教学</a> <div class="wzrthreerb"> <div >68704次学习</div> <a target="_blank" class="courseICollection" data-id="1656"><img src="/static/images/images/icon-small-nocollect.png" class="nofollow">收藏</a> </div> </div> </li> <li> <a target="_blank" target="_blank" href="/course/1655.html" title="PHP新手语法线上课程教学" class="wzrthreelaimg"> <img src="https://img.php.cn/upload/course/000/000/081/684a8c23d811b293.png" alt="PHP新手语法线上课程教学"/> </a> <div class="wzrthree-right"> <a target="_blank" target="_blank" href="/course/1655.html">PHP新手语法线上课程教学</a> <div class="wzrthreerb"> <div >7785次学习</div> <a target="_blank" class="courseICollection" data-id="1655"><img src="/static/images/images/icon-small-nocollect.png" class="nofollow">收藏</a> </div> </div> </li> <li> <a target="_blank" target="_blank" href="/course/1654.html" title="支付宝沙箱支付(个人也能用的支付)" class="wzrthreelaimg"> <img src="https://img.php.cn/teacher/course/20240819/172406094466c31510e008b.jpg" alt="支付宝沙箱支付(个人也能用的支付)"/> </a> <div class="wzrthree-right"> <a target="_blank" target="_blank" href="/course/1654.html">支付宝沙箱支付(个人也能用的支付)</a> <div class="wzrthreerb"> <div >5005次学习</div> <a target="_blank" class="courseICollection" data-id="1654"><img src="/static/images/images/icon-small-nocollect.png" class="nofollow">收藏</a> </div> </div> </li> <li> <a target="_blank" target="_blank" href="/course/1650.html" title="麻省理工大佬Python课程" class="wzrthreelaimg"> <img src="https://img.php.cn/upload/course/000/000/067/66592dcfeb1b4698.png" alt="麻省理工大佬Python课程"/> </a> <div class="wzrthree-right"> <a target="_blank" target="_blank" href="/course/1650.html">麻省理工大佬Python课程</a> <div class="wzrthreerb"> <div >46290次学习</div> <a target="_blank" class="courseICollection" data-id="1650"><img src="/static/images/images/icon-small-nocollect.png" class="nofollow">收藏</a> </div> </div> </li> </ul> </div> <script> $('.wzrthreeTab>div').click(function(e){ $('.wzrthreeTab>div').removeClass('check') $(this).addClass('check') $('.wzrthreelist>ul').css('display','none') $('.'+e.currentTarget.dataset.id).show() }) </script> </div> <script> $(document).ready(function(){ var sjyx_banSwiper = new Swiper(".sjyx_banSwiperwz",{ speed:1000, autoplay:{ delay:3500, disableOnInteraction: false, }, pagination:{ el:'.sjyx_banSwiperwz .swiper-pagination', clickable :false, }, loop:true }); loading(); }) function loading(reloading=false){ if(reloading){ $("#ai_doubao2_3_wait_right").show(); $("#ai_doubao2_3_wait_left").show(); $("#doubao_error_right").hide(); $("#doubao_error_left").hide(); } $.ajax({ url:'/index.php/api/process?sign=&id=380580&time='+Date.now(), dataType:'json', async:true, headers: { "X-Requested-With": "XMLHttpRequest" // 标记为异步请求 }, type:'post', success:function(result){ if(result.code!=1){ $("#doubao_error_right").show(); $("#ai_doubao2_3_wait_right").hide(); $("#doubao_error_left").show(); $("#ai_doubao2_3_wait_left").hide(); }else{ $("#ai_doubao2_3_wait_right").hide(); $("#ai_doubao2_3_wait_left").hide(); let doubao_answer = `<p>`+result.data.content+`</p>`; $("#doubao_answer_right").html(doubao_answer); $("#doubao_answer_left").html(doubao_answer); let doubao_titles = ''; if(result.data.title){ $.each(result.data.title,function(k,v){ doubao_titles+=`<div class="ai_doubao2_2s"><a target="_blank" rel="nofollow" target="_blank" href="https://doubao.com/chat/new-thread?flow_tracking_source=360_php&channel=360_php_abstract&source=360_db_php_abstract&keywordid=`+"380580"+`&query=参考https://www.php.cn`+"/faq/380580.html的内容,"+encodeURIComponent(v)+`" title="`+v+`"><p><img src="/static/images/doubao_yellowstar.png" alt=""> `+v+`</p></a></div>`; }) } yigeyigezichulai(ai_doubao_titles_show,doubao_titles); } } }) } function ai_doubao_titles_show(str){ $("#ai_doubao_titles_right").html(str); $("#ai_doubao_titles_left").html(str); } function yigeyigezichulai(callback,str){ const textElements = document.querySelectorAll('.yigeyigezichulai p'); textElements.forEach(textElement => { const originalHTML = textElement.innerHTML; const tempDiv = document.createElement('div'); tempDiv.innerHTML = originalHTML; const fragments = []; Array.from(tempDiv.childNodes).forEach(node => { if (node.nodeType === Node.TEXT_NODE) { fragments.push(...node.textContent.split('')); } else { fragments.push(node.outerHTML); } }); textElement.innerHTML = ''; let index = 0; const interval = setInterval(() => { if (index < fragments.length) { const fragment = fragments[index]; if (fragment.startsWith('<')) { textElement.innerHTML += fragment; } else { textElement.innerHTML += fragment; } } else { clearInterval(interval); callback(str); } index++; }, 25); // 每 100 毫秒显示一个片段 }); } // 豆包等待动画 const containers = document.querySelectorAll('.ai_doubao2_3_wait') || []; if (containers.length > 0) { containers.forEach(container => { if (container && container.firstElementChild) { const intervalId = setInterval(() => { if (!container || !container.firstElementChild) { clearInterval(intervalId); return; } const firstChild = container.firstElementChild; container.appendChild(firstChild); }, 300); } }); } // AI总结相关功能 const aiZongjie = document.querySelector('.ai_zongjie'); const aiDoubao = document.querySelector('.ai_doubao'); const closeButton = document.querySelector('.ai_doubao1_R_img'); if (aiZongjie && aiDoubao && closeButton) { aiZongjie.addEventListener('click', () => { aiDoubao.style.display = 'block'; }); closeButton.addEventListener('click', () => { aiDoubao.style.display = 'none'; }); } // 文字动画效果 const textElements = document.querySelectorAll('.ai_doubao2_3s.ai_doubao2_3s_L p') || []; if (textElements.length > 0) { textElements.forEach(textElement => { if (!textElement) return; const originalHTML = textElement.innerHTML; const tempDiv = document.createElement('div'); tempDiv.innerHTML = originalHTML; const fragments = []; Array.from(tempDiv.childNodes).forEach(node => { if (!node) return; if (node.nodeType === Node.TEXT_NODE) { fragments.push(...(node.textContent || '').split('')); } else { fragments.push(node.outerHTML); } }); if (fragments.length === 0) return; textElement.innerHTML = ''; let index = 0; const interval = setInterval(() => { if (!textElement || index >= fragments.length) { clearInterval(interval); return; } const fragment = fragments[index]; if (fragment) { textElement.innerHTML += fragment; } index++; }, 100); }); } // 页面滚动监听相关 const divai_zongjie1 = document.getElementById('ai_zongjie1'); const divai_zongjie2 = document.getElementById('ai_zongjie2'); const divai_zongjie3 = document.getElementById('ai_zongjie3'); if (divai_zongjie2) { const observer = new IntersectionObserver((entries) => { entries.forEach(entry => { if (!entry.isIntersecting && divai_zongjie1) { try { divai_zongjie1.style.display = 'flex'; requestAnimationFrame(() => { if (divai_zongjie1) { divai_zongjie1.classList.add('visible'); } }); } catch (e) { console.log('元素操作失败'); } } else if (divai_zongjie1) { try { divai_zongjie1.classList.remove('visible'); divai_zongjie1.addEventListener('transitionend', () => { if (divai_zongjie1 && !divai_zongjie1.classList.contains('visible')) { divai_zongjie1.style.display = 'none'; } }, { once: true }); if (divai_zongjie3 && divai_zongjie3.style) { divai_zongjie3.style.display = 'none'; } } catch (e) { console.log('元素操作失败'); } } }); }, { threshold: 0, rootMargin: '-90px 0px 0px 0px' }); try { observer.observe(divai_zongjie2); } catch (e) { console.log('观察器初始化失败'); } // 滚动事件处理 window.addEventListener('scroll', () => { const scrollY = window.scrollY || window.pageYOffset; if (divai_zongjie2) { try { divai_zongjie2.style.display = scrollY > 1000 ? 'none' : 'block'; } catch (e) { console.log('滚动处理失败'); } } }); } </script> <div class="wzrFour"> <div class="wzrfour-title"> <div>最新下载</div> <a target="_blank" href="/xiazai">更多> </a> </div> <div class="swiper-container sjyx_banSwiperwz"> <ul class="swiper-wrapper"> <li class="swiper-slide"> <a target="_blank" href="/xiazai/code/8587" target="_blank" title="新鲜有机肉类宣传网站模板"> <img src="https://img.php.cn/upload/webcode/000/000/005/173613957275112.jpg?x-oss-process=image/resize,m_fill,h_220,w_335" onerror="this.onerror='';this.src='/static/images/moren/morentu.png'" alt="新鲜有机肉类宣传网站模板"> </a> </li> <li class="swiper-slide"> <a target="_blank" href="/xiazai/code/8590" target="_blank" title="驾照考试驾校HTML5网站模板"> <img src="https://img.php.cn/upload/webcode/000/000/011/174954240445579.jpg?x-oss-process=image/resize,m_fill,h_220,w_335" onerror="this.onerror='';this.src='/static/images/moren/morentu.png'" alt="驾照考试驾校HTML5网站模板"> </a> </li> <li class="swiper-slide"> <a target="_blank" href="/xiazai/code/8588" target="_blank" title="HTML5房地产公司宣传网站模板"> <img src="https://img.php.cn/upload/webcode/000/000/018/173613957345012.jpg?x-oss-process=image/resize,m_fill,h_220,w_335" onerror="this.onerror='';this.src='/static/images/moren/morentu.png'" alt="HTML5房地产公司宣传网站模板"> </a> </li> <div class="clear"></div> </ul> <div class="swiper-pagination"></div> </div> <div class="wzrfourList"> <div class="wzrfourlTab"> <div class="check" data-id="onef">网站特效 <div></div></div> <div class="" data-id="twof">网站源码<div></div></div> <div class="" data-id="threef">网站素材<div></div></div> <div class="" data-id="fourf">前端模板<div></div></div> </div> <ul class="onef"> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" target="_blank" title="jQuery点击文字滚动Scrollocue插件" href="/xiazai/js/8073">[文字特效] jQuery点击文字滚动Scrollocue插件</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" target="_blank" title="CSS3聚光灯下倒影文字特效" href="/xiazai/js/8072">[文字特效] CSS3聚光灯下倒影文字特效</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" target="_blank" title="jQuery企业留言表单联系代码" href="/xiazai/js/8071">[表单按钮] jQuery企业留言表单联系代码</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" target="_blank" title="HTML5 MP3音乐盒播放特效" href="/xiazai/js/8070">[播放器特效] HTML5 MP3音乐盒播放特效</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" target="_blank" title="HTML5炫酷粒子动画导航菜单特效" href="/xiazai/js/8069">[菜单导航] HTML5炫酷粒子动画导航菜单特效</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" target="_blank" title="jQuery可视化表单拖拽编辑代码" href="/xiazai/js/8068">[表单按钮] jQuery可视化表单拖拽编辑代码</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" target="_blank" title="VUE.JS仿酷狗音乐播放器代码" href="/xiazai/js/8067">[播放器特效] VUE.JS仿酷狗音乐播放器代码</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" target="_blank" title="经典html5推箱子小游戏" href="/xiazai/js/8066">[html5特效] 经典html5推箱子小游戏</a> </div> </li> </ul> <ul class="twof" style="display:none"> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/code/11353" title="雅龙智能装备工业设备类WordPress主题1.0" target="_blank">[企业站源码] 雅龙智能装备工业设备类WordPress主题1.0</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/code/11352" title="威发卡自动发卡系统" target="_blank">[电商源码] 威发卡自动发卡系统</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/code/11351" title="卡密分发系统" target="_blank">[电商源码] 卡密分发系统</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/code/11350" title="中华陶瓷网" target="_blank">[电商源码] 中华陶瓷网</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/code/11349" title="简洁粉色食品公司网站" target="_blank">[电商源码] 简洁粉色食品公司网站</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/code/11348" title="极速网店系统" target="_blank">[电商源码] 极速网店系统</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/code/11347" title="淘宝妈妈_淘客推广系统" target="_blank">[电商源码] 淘宝妈妈_淘客推广系统</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/code/11346" title="积客B2SCMS商城系统" target="_blank">[电商源码] 积客B2SCMS商城系统</a> </div> </li> </ul> <ul class="threef" style="display:none"> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/sucai/4106" target="_blank" title="白色相框样机展示PSD素材下载">[网站素材] 白色相框样机展示PSD素材下载</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/sucai/4105" target="_blank" title="2026年新年艺术字设计模板下载">[网站素材] 2026年新年艺术字设计模板下载</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/sucai/4104" target="_blank" title="复古派对鸡尾酒邀请函矢量模板">[网站素材] 复古派对鸡尾酒邀请函矢量模板</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/sucai/4103" target="_blank" title="春节快乐方形海报设计源文件下载">[网站素材] 春节快乐方形海报设计源文件下载</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/sucai/4102" target="_blank" title="2026创意线条艺术数字矢量素材">[网站素材] 2026创意线条艺术数字矢量素材</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/sucai/4101" target="_blank" title="2026年元旦跨年横幅设计下载">[网站素材] 2026年元旦跨年横幅设计下载</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/sucai/4100" target="_blank" title="北欧风红白植物装饰画矢量素材">[网站素材] 北欧风红白植物装饰画矢量素材</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/sucai/4099" target="_blank" title="复古手绘烘焙甜点菜单矢量模板">[网站素材] 复古手绘烘焙甜点菜单矢量模板</a> </div> </li> </ul> <ul class="fourf" style="display:none"> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/code/8590" target="_blank" title="驾照考试驾校HTML5网站模板">[前端模板] 驾照考试驾校HTML5网站模板</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/code/8589" target="_blank" title="驾照培训服务机构宣传网站模板">[前端模板] 驾照培训服务机构宣传网站模板</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/code/8588" target="_blank" title="HTML5房地产公司宣传网站模板">[前端模板] HTML5房地产公司宣传网站模板</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/code/8587" target="_blank" title="新鲜有机肉类宣传网站模板">[前端模板] 新鲜有机肉类宣传网站模板</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/code/8586" target="_blank" title="响应式天气预报宣传网站模板">[前端模板] 响应式天气预报宣传网站模板</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/code/8585" target="_blank" title="房屋建筑维修公司网站CSS模板">[前端模板] 房屋建筑维修公司网站CSS模板</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/code/8584" target="_blank" title="响应式志愿者服务网站模板">[前端模板] 响应式志愿者服务网站模板</a> </div> </li> <li> <div class="wzrfourli"> <span class="layui-badge-dots wzrflr"></span> <a target="_blank" href="/xiazai/code/8583" target="_blank" title="创意T恤打印店网站HTML5模板">[前端模板] 创意T恤打印店网站HTML5模板</a> </div> </li> </ul> </div> <script> $('.wzrfourlTab>div').click(function(e){ $('.wzrfourlTab>div').removeClass('check') $(this).addClass('check') $('.wzrfourList>ul').css('display','none') $('.'+e.currentTarget.dataset.id).show() }) </script> </div> </div> </div> <!--主体 end--> <!--底部--> <div class="phpFoot"> <div class="phpFootIn"> <div class="phpFootCont"> <div class="phpFootLeft"> <dl> <dt> <a target="_blank" href="/about/us.html" rel="nofollow" target="_blank" title="关于我们" class="cBlack">关于我们</a> <a target="_blank" href="/about/disclaimer.html" rel="nofollow" target="_blank" title="免责申明" class="cBlack">免责申明</a> <a target="_blank" href="/about/jbzx.html" rel="nofollow" target="_blank" title="举报中心" class="cBlack">举报中心</a> <a target="_blank" href="javascript:;" rel="nofollow" onclick="advice_data(99999999,'意见反馈')" title="意见反馈" class="cBlack">意见反馈</a> <a target="_blank" href="https://www.php.cn/teacher.html" rel="nofollow" target="_blank" title="讲师合作" class="cBlack">讲师合作</a> <a target="_blank" href="https://www.php.cn/blog/detail/20304.html" rel="nofollow" target="_blank" title="广告合作" class="cBlack">广告合作</a> <a target="_blank" href="/new/" target="_blank" title="最新文章列表" class="cBlack">最新更新</a> <div class="clear"></div> </dt> <dd class="cont1">php中文网:公益在线php培训,帮助PHP学习者快速成长!</dd> <dd class="cont2"> <span class="ylwTopBox"> <a target="_blank" 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 target="_blank" href="tencent://message/?uin=27220243&Site=www.php.cn&Menu=yes" target="_blank" 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-2025 <a target="_blank" href="https://www.php.cn/" target="_blank">https://www.php.cn/</a> All Rights Reserved | php.cn | <a target="_blank" href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">湘ICP备2023035733号</a></p><a target="_blank" href="http://www.beian.gov.cn/portal/index.do" rel="nofollow" target="_blank"><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--> <script> $(function() { //直播倒计时 $(".liveitem").each(function(){ timer(this); }) function timer(obj){ var intDiff = $(obj).data("countdown"); window.setInterval(function(){ var day=0, hour=0, minute=0, second=0;//时间默认值 if(intDiff > 0){ day = Math.floor(intDiff / (60 * 60 * 24)); hour = Math.floor(intDiff / (60 * 60)) - (day * 24); minute = Math.floor(intDiff / 60) - (day * 24 * 60) - (hour * 60); second = Math.floor(intDiff) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60); }else{ $(obj).find(".phpZbktBg").remove(); return; } if (hour <= 9) hour = '0' + hour; if (minute <= 9) minute = '0' + minute; if (second <= 9) second = '0' + second; $(obj).find('.day_show').html(day+""); $(obj).find('.hour_show').html('<s id="h"></s>'+hour+''); $(obj).find('.minute_show').html('<s></s>'+minute+''); $(obj).find('.second_show').html('<s></s>'+second+''); intDiff--; }, 1000); } }); </script> <script type="text/javascript" src="/hitsUp?type=article&id=380580&time=1766219999"></script> <script src="/static/ueditor/third-party/SyntaxHighlighter/shCore.js?1766219999"></script> <script>article_status = "23547";</script> <script type="text/javascript" src="/static/js/jquery.min.js"></script> <!-- <script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script> --> <input type="hidden" id="verifycode" value="/captcha.html"> <script src="/static/js/jquery.min.js"></script> <script src="/static/layui/layui.js"></script> <script src="/static/js/common_new.js?2.1" ></script> <script type="text/javascript" src="/static/js/global.min.js?5.5.33"></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 type="text/javascript" src="/static/js/jquery.cookie.js"></script> <script>var topadshow = $.cookie('phpcndatatopadshows');if(!topadshow&&1==2){$('.topimages').show();var topobj = $('.topimages').find('.time');var topobj_day = $('.topimages .time').find('.day');var topobj_hours = $('.topimages .time').find('.hours');var topobj_minutes = $('.topimages .time').find('.minutes');var topobj_second = $('.topimages .time').find('.second');var topday = parseInt(topobj_day.html());var tophours = parseInt(topobj_hours.html());var topminutes = parseInt(topobj_minutes.html());var topsecond = parseInt(topobj_second.html());setInterval(function(){if(topsecond > 0){topsecond = topsecond-1;}else{if(topminutes > 0){topminutes = topminutes-1;topsecond = 59;}else{if(tophours > 0){tophours = tophours-1;topminutes = 59;topsecond = 59;}else{if(topday > 0){topday = topday -1;tophours = 23;topminutes = 59;topsecond = 59;}else{topobj.html("<p><span>活动已结束</span></p>");}}}}topobj_second.html(topsecond);topobj_minutes.html(topminutes);topobj_hours.html(tophours);topobj_day.html(topday);},1000);}$('.topimages .layui-icon-close').click(function(){$.cookie('phpcndatatopadshows',1,{expires:7});$('.topimages').hide();});</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> <style> .content img{max-width:100%;} .copy-button { padding: 5px 10px; background-color: #666; border: none; color: #FFF; font-size: 12px; cursor: pointer; border-radius: 5px; position: relative; top: 33px; right: 5px; z-index: 99; float: right; } .copy-button:hover { background-color: #fc3930; } </style> <script> $(document).ready(function(){ $('#gongzhonghao').hover(function(){ $('#gzh').show(); },function(){ $('#gzh').hide(); }) }) </script> <script> layui.use(['jquery','layer'], function(){ $('.test-iframe-handle').click(function(){ layer.open({ type: 2, area: ['1300px', '750px'], content: 'https://www.php.cn/help/ask?q=HTML%E4%B8%AD%E5%A4%B4%E9%83%A8%E6%A0%87%E7%AD%BE%E7%9A%84%E7%94%A8%E6%B3%95', fixed: true, // 不固定 //maxmin: true, shadeClose: true, title:"智能小助手", btnAlign: 'c', yes: function(index, layero){ // 获取 iframe 的窗口对象 var iframeWin = window[layero.find('iframe')[0]['name']]; var elemMark = iframeWin.$('#mark'); // 获得 iframe 中某个输入框元素 var value = elemMark.val(); if($.trim(value) === '') return elemMark.focus(); // 显示获得的值 layer.msg('获得 iframe 中的输入框标记值:'+ value); } }); }) var is_login = "0"; var show = 0; var ceng = getCookie('ceng'); //文章下拉弹出登录 // if(is_login == 0 && !ceng) // { // window.onscroll = function(){ // var t = document.documentElement.scrollTop || document.body.scrollTop; // var top_div = document.getElementById( "top_div" ); // if( t >= 2500 && show == 0) { // show = 1 // setCookie('ceng',1,1); // $(document).trigger("api.loginpopbox"); // } // } // } //未登录复制显示登录按钮 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); }); } }) 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; } function aiask(ask){ layer.open({ type: 2, area: ['1300px', '750px'], content: 'https://www.php.cn/help/ask?q='+encodeURIComponent(ask), fixed: true, // 不固定 //maxmin: true, shadeClose: true, title:"智能小助手", btnAlign: 'c', yes: function(index, layero){ // 获取 iframe 的窗口对象 var iframeWin = window[layero.find('iframe')[0]['name']]; var elemMark = iframeWin.$('#mark'); // 获得 iframe 中某个输入框元素 var value = elemMark.val(); if($.trim(value) === '') return elemMark.focus(); // 显示获得的值 layer.msg('获得 iframe 中的输入框标记值:'+ value); } }); } </script> <!--底部浮动层--> <!-- <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" target="_blank" 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" target="_blank"> <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> <!--侧导航 end--> <!-- 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> </body> </html>