当前位置:首页 > 文章列表 > 文章 > 前端 > 无障碍 (a) 规则 - 3

无障碍 (a) 规则 - 3

来源:dev.to 2024-12-22 15:22:06 0浏览 收藏

在IT行业这个发展更新速度很快的行业,只有不停止的学习,才不会被行业所淘汰。如果你是文章学习者,那么本文《无障碍 (a) 规则 - 3》就很适合你!本篇内容主要包括##content_title##,希望对大家的知识积累有所帮助,助力实战开发!

图片

这不仅仅是向图像添加替代文本;远不止这些。

装饰图像

  • 如果图像没有添加额外的上下文或信息(装饰图像)来让用户更好地理解上下文,那么它应该对辅助技术 (at) 隐藏,例如屏幕阅读器。

  • 使用以下任何一种方法来隐藏 at 中的图像:

    • 空文本替代 (alt)
    • 应用 aria
    • 添加图像作为 css 背景
<!-- all of these choices lead to the same result. -->
<img src=".../ladybug.jpg" role="presentation">
<img src=".../ladybug.jpg" role="none">
<img src=".../ladybug.jpg" aria-hidden="true">
  • 如有疑问,请为图像添加描述。

空或 null alt

  • 不要将图像 alt 属性设置为“”,除非图像纯粹是装饰性的。
attribute example screen reader behavior use case
alt="" (empty) ignores the image completely decorative or non-informative images
missing alt may read the filename/url not recommended; implies negligence

信息丰富的图像

  • 如果图像传达概念、想法或情感,您应该包含描述图像用途的程序化替代文本。

  • 尽可能添加非常详细的图像描述。

例如

<img src=".../ladybug_swarm.jpg" alt="a swarm of red ladybugs is resting 
on the leaves of my prize rose bush.">

无障碍 (a) 规则 - 3

  • 如果图像是(内联),请添加 role="img"。

  • 由于元素不支持 alt 属性,请使用替代编码方法来提供描述。

method use case pros cons
</td> <td>short, brief descriptions</td> <td>simple, widely supported</td> <td>limited in length</td> </tr><tr><td>aria-label</td> <td>brief descriptions</td> <td>quick, inline</td> <td>best for short text</td> </tr><tr><td>aria-labelledby</td> <td>complex descriptions using <title> and <desc></td> <td>comprehensive, flexible</td> <td>more verbose</td> </tr><tr><td><figcaption></td> <td>visible description in a figure context</td> <td>visible and accessible</td> <td>not ideal for all svgs</td> </tr></tbody></table></div> <h3> 功能图像 </h3> <ul><li><p>任何具有功能性目的的图像(例如,链接到主页的徽标、用作搜索按钮的放大镜图标)都应包含适当的替代文本。</p></li> <li><p>替代文本应描述<strong>图像的操作</strong>,而不是其视觉方面。</p></li> <li><p>如果图像既提供信息又具有可操作性,您可以为每个元素添加替代描述 - 但这不是必需的。例如<br></p></li> </ul><pre><div title="navigate to the homepage"> <a href="/"> <img src=".../ladybug_logo.png" alt="lovely ladybugs for your lawn"/> </a> </div> </pre> <h3> 复杂图像 </h3> <ul><li><p>如果图像需要比装饰性、信息性或功能性图像更多的解释(包括信息图表、地图、图形/图表和复杂插图),请使用这些方法中的任何一种来添加替代描述</p></li> <li><p>链接到资源或提供跳转链接到页面稍后的较长说明。例如<br></p></li> </ul><pre><img src=".../ladybug_anatomy.svg" alt="diagram of the anatomy of a ladybug."> <a href="ladybug-science.html">learn more about the anatomy of a ladybug</a> </pre> <ul><li>将 aria-scribedby 属性附加到 <img> 元素,然后将图像链接到包含较长描述的 id。例如 </li> </ul><pre> <img src=".../ladybug_anatomy.svg" alt="diagram of the anatomy of a ladybug." aria-describedby="description"> <p id="description">in this course, you will learn more about the anatomy of a ladybug, including the head, antenna, eye, pronotum, elytra, leg, abdomen, and wing. </p> </pre> <ul><li>将简短的替代描述与较长的描述分组是使用 <figure> 和 <figcaption> 元素。例如 </li> </ul><pre> <figure role="group"> <img src=".../Ladybug_Anatomy.svg" alt="Diagram of the anatomy of a ladybug."> <br><br> <figcaption> <a href="ladybug-science.html">Learn more about the anatomy of a ladybug</a> </figcaption> </figure> </pre> <h3> 替代文本最佳实践 </h3> <ul><li><p>建议将替代文本限制在 150 个字符或更少,以避免读者疲劳。</p></li> <li><p>避免在说明中使用 <strong>“图像”</strong> 或 <strong>“照片”</strong> 等词语,因为屏幕阅读器会识别这些文件类型。</p></li> <li><p>命名图像时,尽可能保持一致和准确。当替代文本丢失或被忽略时,图像名称是后备。</p></li> <li><p>避免使用非字母字符(例如 #、9、&)</p></li> <li><p>在图像名称或替代文本中使用单词之间的破折号,而不是下划线。</p></li> <li><p>尽可能使用正确的标点符号。如果没有它,图像描述听起来就像是一个漫长的、永无休止的连续句子。</p></li> <li><p>像人类而不是机器人一样编写替代文本。关键字堆砌对任何人都没有好处——使用屏幕阅读器的人会感到恼火,搜索引擎算法会惩罚他们。</p></li> </ul><p>今天关于《无障碍 (a) 规则 - 3》的内容介绍就到此结束,如果有什么疑问或者建议,可以在golang学习网公众号下多多回复交流;文中若有不正之处,也希望回复留言以告知!</p> </div> <div class="labsList"> </div> <div class="claration"> <div class="clarationTit">版本声明</div>本文转载于:dev.to 如有侵犯,请联系<a href="javascript:;" class="aRed">study_golang@163.com</a>删除 </div> <div class="cateBox"> <div class="cateItem"> <a href="/article/173183.html" title="如何解决电脑图标过大的问题,让桌面更整洁" class="img_box"> <img src="/uploads/20241222/17348521206767be187dd10.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="如何解决电脑图标过大的问题,让桌面更整洁">如何解决电脑图标过大的问题,让桌面更整洁 </a> <dl> <dt class="lineOverflow"><a href="/article/173183.html" title="如何解决电脑图标过大的问题,让桌面更整洁" class="aBlack">上一篇<i></i></a></dt> <dd class="lineTwoOverflow">如何解决电脑图标过大的问题,让桌面更整洁</dd> </dl> </div> <div class="cateItem"> <a href="/article/173185.html" title="linux中文文件名乱码解决" class="img_box"> <img src="/uploads/20241222/17348522816767beb9075f6.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="linux中文文件名乱码解决"> </a> <dl> <dt class="lineOverflow"><a href="/article/173185.html" class="aBlack" title="linux中文文件名乱码解决">下一篇<i></i></a></dt> <dd class="lineTwoOverflow">linux中文文件名乱码解决</dd> </dl> </div> </div> </div> </div> <div class="leftContBox pt0"> <div class="pdl20"> <div class="contTit"> <a href="/articlelist.html" class="more" title="查看更多">查看更多<i class="iconfont"></i></a> <div class="tit">最新文章</div> </div> </div> <ul class="newArticleList"> <li> <div class="contBox"> <a href="/article/234322.html" class="img_box" title="CSSvar()函数怎么用?手把手教你搞定var变量"> <img src="/uploads/20250619/17503258416853da5152c30.jpg" onerror="this.src='/assets/images/moren/morentu.png'" alt="CSSvar()函数怎么用?手把手教你搞定var变量"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  5分钟前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/234322.html" class="aBlack" target="_blank" title="CSSvar()函数怎么用?手把手教你搞定var变量">CSSvar()函数怎么用?手把手教你搞定var变量</a> </dt> <dd class="cont2"> <span><i class="view"></i>293浏览</span> <span class="collectBtn user_collection" data-id="234322" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/234318.html" class="img_box" title="前端实现复制到剪贴板的4种方法,JSer快收藏!"> <img src="/uploads/20250619/17503256136853d96deb145.jpg" onerror="this.src='/assets/images/moren/morentu.png'" alt="前端实现复制到剪贴板的4种方法,JSer快收藏!"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  9分钟前  |   <a href="javascript:;" class="aLightGray" title="JavaScript">JavaScript</a> <a href="javascript:;" class="aLightGray" title="安全性">安全性</a> <a href="javascript:;" class="aLightGray" title="document.execCommand('copy')">document.execCommand('copy')</a> <a href="javascript:;" class="aLightGray" title="复制到剪贴板">复制到剪贴板</a> <a href="javascript:;" class="aLightGray" title="navigator.clipboard.writeText()">navigator.clipboard.writeText()</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/234318.html" class="aBlack" target="_blank" title="前端实现复制到剪贴板的4种方法,JSer快收藏!">前端实现复制到剪贴板的4种方法,JSer快收藏!</a> </dt> <dd class="cont2"> <span><i class="view"></i>308浏览</span> <span class="collectBtn user_collection" data-id="234318" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/234316.html" class="img_box" title="用Vue.js手把手教你搭建超赞美食推荐网站(附详细代码)"> <img src="/uploads/20250619/17503255826853d94e4f608.jpg" onerror="this.src='/assets/images/moren/morentu.png'" alt="用Vue.js手把手教你搭建超赞美食推荐网站(附详细代码)"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  10分钟前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/234316.html" class="aBlack" target="_blank" title="用Vue.js手把手教你搭建超赞美食推荐网站(附详细代码)">用Vue.js手把手教你搭建超赞美食推荐网站(附详细代码)</a> </dt> <dd class="cont2"> <span><i class="view"></i>322浏览</span> <span class="collectBtn user_collection" data-id="234316" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/234315.html" class="img_box" title="CSS盒模型看不懂?这篇超详细解析快收藏!"> <img src="/uploads/20250619/17503254096853d8a1d6dd3.jpg" onerror="this.src='/assets/images/moren/morentu.png'" alt="CSS盒模型看不懂?这篇超详细解析快收藏!"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  12分钟前  |   <a href="javascript:;" class="aLightGray" title="网页布局">网页布局</a> <a href="javascript:;" class="aLightGray" title="水平居中">水平居中</a> <a href="javascript:;" class="aLightGray" title="box-sizing">box-sizing</a> <a href="javascript:;" class="aLightGray" title="CSS盒模型">CSS盒模型</a> <a href="javascript:;" class="aLightGray" title="margincollapsing">margincollapsing</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/234315.html" class="aBlack" target="_blank" title="CSS盒模型看不懂?这篇超详细解析快收藏!">CSS盒模型看不懂?这篇超详细解析快收藏!</a> </dt> <dd class="cont2"> <span><i class="view"></i>380浏览</span> <span class="collectBtn user_collection" data-id="234315" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/234313.html" class="img_box" title="CSShover伪类怎么用?教你轻松实现hover效果的小技巧"> <img src="/uploads/20250619/17503253536853d8698329c.jpg" onerror="this.src='/assets/images/moren/morentu.png'" alt="CSShover伪类怎么用?教你轻松实现hover效果的小技巧"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  14分钟前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/234313.html" class="aBlack" target="_blank" title="CSShover伪类怎么用?教你轻松实现hover效果的小技巧">CSShover伪类怎么用?教你轻松实现hover效果的小技巧</a> </dt> <dd class="cont2"> <span><i class="view"></i>489浏览</span> <span class="collectBtn user_collection" data-id="234313" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/234305.html" class="img_box" title="JS实现跨域请求原来这么简单,手把手教你!"> <img src="/uploads/20250619/17503250486853d738e49e3.jpg" onerror="this.src='/assets/images/moren/morentu.png'" alt="JS实现跨域请求原来这么简单,手把手教你!"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  19分钟前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/234305.html" class="aBlack" target="_blank" title="JS实现跨域请求原来这么简单,手把手教你!">JS实现跨域请求原来这么简单,手把手教你!</a> </dt> <dd class="cont2"> <span><i class="view"></i>488浏览</span> <span class="collectBtn user_collection" data-id="234305" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/234292.html" class="img_box" title="CSS中span标签有哪些属性?手把手教你玩转span属性"> <img src="/uploads/20250619/17503243866853d4a28e8f3.jpg" onerror="this.src='/assets/images/moren/morentu.png'" alt="CSS中span标签有哪些属性?手把手教你玩转span属性"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  30分钟前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/234292.html" class="aBlack" target="_blank" title="CSS中span标签有哪些属性?手把手教你玩转span属性">CSS中span标签有哪些属性?手把手教你玩转span属性</a> </dt> <dd class="cont2"> <span><i class="view"></i>137浏览</span> <span class="collectBtn user_collection" data-id="234292" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/234289.html" class="img_box" title="手把手教你HTML转EPUB,电子书格式这样换超简单"> <img src="/uploads/20250619/17503242656853d42907b32.jpg" onerror="this.src='/assets/images/moren/morentu.png'" alt="手把手教你HTML转EPUB,电子书格式这样换超简单"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  32分钟前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/234289.html" class="aBlack" target="_blank" title="手把手教你HTML转EPUB,电子书格式这样换超简单">手把手教你HTML转EPUB,电子书格式这样换超简单</a> </dt> <dd class="cont2"> <span><i class="view"></i>336浏览</span> <span class="collectBtn user_collection" data-id="234289" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/234285.html" class="img_box" title="手把手教你用Vue.js撸一个超炫酷音乐播放器(送源码)"> <img src="/uploads/20250619/17503240296853d33de1542.jpg" onerror="this.src='/assets/images/moren/morentu.png'" alt="手把手教你用Vue.js撸一个超炫酷音乐播放器(送源码)"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  36分钟前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/234285.html" class="aBlack" target="_blank" title="手把手教你用Vue.js撸一个超炫酷音乐播放器(送源码)">手把手教你用Vue.js撸一个超炫酷音乐播放器(送源码)</a> </dt> <dd class="cont2"> <span><i class="view"></i>201浏览</span> <span class="collectBtn user_collection" data-id="234285" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/234284.html" class="img_box" title="HTML中href和src的区别?快速掌握路径属性的小秘密"> <img src="/uploads/20250619/17503239666853d2fe6043f.jpg" onerror="this.src='/assets/images/moren/morentu.png'" alt="HTML中href和src的区别?快速掌握路径属性的小秘密"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  37分钟前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/234284.html" class="aBlack" target="_blank" title="HTML中href和src的区别?快速掌握路径属性的小秘密">HTML中href和src的区别?快速掌握路径属性的小秘密</a> </dt> <dd class="cont2"> <span><i class="view"></i>281浏览</span> <span class="collectBtn user_collection" data-id="234284" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/234282.html" class="img_box" title="JS如何实现数据双向绑定?手把手教你四种实现思路"> <img src="/uploads/20250619/17503239136853d2c9609e8.jpg" onerror="this.src='/assets/images/moren/morentu.png'" alt="JS如何实现数据双向绑定?手把手教你四种实现思路"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  37分钟前  |   <a href="javascript:;" class="aLightGray" title="proxy">proxy</a> <a href="javascript:;" class="aLightGray" title="数据双向绑定">数据双向绑定</a> <a href="javascript:;" class="aLightGray" title="Object.defineProperty">Object.defineProperty</a> <a href="javascript:;" class="aLightGray" title="发布/订阅模式">发布/订阅模式</a> <a href="javascript:;" class="aLightGray" title="脏值检查">脏值检查</a> </span> </dd> <dt class="lineOverflow"> <a href="/article/234282.html" class="aBlack" target="_blank" title="JS如何实现数据双向绑定?手把手教你四种实现思路">JS如何实现数据双向绑定?手把手教你四种实现思路</a> </dt> <dd class="cont2"> <span><i class="view"></i>228浏览</span> <span class="collectBtn user_collection" data-id="234282" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> <li> <div class="contBox"> <a href="/article/234280.html" class="img_box" title="手把手教学!这样设置HTML元素透明度,opacity真香"> <img src="/uploads/20250619/17503237076853d1fbe8d96.jpg" onerror="this.src='/assets/images/moren/morentu.png'" alt="手把手教学!这样设置HTML元素透明度,opacity真香"> </a> <dl> <dd class="cont1"> <span> <a href="/articlelist/19_new_0_1.html" class="aLightGray" title="文章">文章</a> · <a href="/articlelist/88_new_0_1.html" class="aLightGray" title="前端">前端</a>   |  41分钟前  |   </span> </dd> <dt class="lineOverflow"> <a href="/article/234280.html" class="aBlack" target="_blank" title="手把手教学!这样设置HTML元素透明度,opacity真香">手把手教学!这样设置HTML元素透明度,opacity真香</a> </dt> <dd class="cont2"> <span><i class="view"></i>419浏览</span> <span class="collectBtn user_collection" data-id="234280" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </dd> </dl> </div> </li> </ul> </div> </div> <div class="mainRight"> <!-- 右侧广告位banner --> <div class="rightContBox" style="margin-top: 0px;"> <div class="rightTit"> <a href="/courselist.html" class="more" title="查看更多">查看更多<i class="iconfont"></i></a> <div class="tit lineOverflow">课程推荐</div> </div> <ul class="lessonRecomRList"> <li> <a href="/course/9.html" class="img_box" target="_blank" title="前端进阶之JavaScript设计模式"> <img src="/uploads/20221222/52fd0f23a454c71029c2c72d206ed815.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="前端进阶之JavaScript设计模式"> </a> <dl> <dt class="lineTwoOverflow"><a href="/course/9.html" target="_blank" class="aBlack" title="前端进阶之JavaScript设计模式">前端进阶之JavaScript设计模式</a></dt> <dd class="cont1 lineTwoOverflow"> 设计模式是开发人员在软件开发过程中面临一般问题时的解决方案,代表了最佳的实践。本课程的主打内容包括JS常见设计模式以及具体应用场景,打造一站式知识长龙服务,适合有JS基础的同学学习。 </dd> <dd class="cont2">542次学习</dd> </dl> </li> <li> <a href="/course/2.html" class="img_box" target="_blank" title="GO语言核心编程课程"> <img src="/uploads/20221221/634ad7404159bfefc6a54a564d437b5f.png" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="GO语言核心编程课程"> </a> <dl> <dt class="lineTwoOverflow"><a href="/course/2.html" target="_blank" class="aBlack" title="GO语言核心编程课程">GO语言核心编程课程</a></dt> <dd class="cont1 lineTwoOverflow"> 本课程采用真实案例,全面具体可落地,从理论到实践,一步一步将GO核心编程技术、编程思想、底层实现融会贯通,使学习者贴近时代脉搏,做IT互联网时代的弄潮儿。 </dd> <dd class="cont2">508次学习</dd> </dl> </li> <li> <a href="/course/74.html" class="img_box" target="_blank" title="简单聊聊mysql8与网络通信"> <img src="/uploads/20240103/bad35fe14edbd214bee16f88343ac57c.png" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="简单聊聊mysql8与网络通信"> </a> <dl> <dt class="lineTwoOverflow"><a href="/course/74.html" target="_blank" class="aBlack" title="简单聊聊mysql8与网络通信">简单聊聊mysql8与网络通信</a></dt> <dd class="cont1 lineTwoOverflow"> 如有问题加微信:Le-studyg;在课程中,我们将首先介绍MySQL8的新特性,包括性能优化、安全增强、新数据类型等,帮助学生快速熟悉MySQL8的最新功能。接着,我们将深入解析MySQL的网络通信机制,包括协议、连接管理、数据传输等,让 </dd> <dd class="cont2">497次学习</dd> </dl> </li> <li> <a href="/course/57.html" class="img_box" target="_blank" title="JavaScript正则表达式基础与实战"> <img src="/uploads/20221226/bbe4083bb3cb0dd135fb02c31c3785fb.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="JavaScript正则表达式基础与实战"> </a> <dl> <dt class="lineTwoOverflow"><a href="/course/57.html" target="_blank" class="aBlack" title="JavaScript正则表达式基础与实战">JavaScript正则表达式基础与实战</a></dt> <dd class="cont1 lineTwoOverflow"> 在任何一门编程语言中,正则表达式,都是一项重要的知识,它提供了高效的字符串匹配与捕获机制,可以极大的简化程序设计。 </dd> <dd class="cont2">487次学习</dd> </dl> </li> <li> <a href="/course/28.html" class="img_box" target="_blank" title="从零制作响应式网站—Grid布局"> <img src="/uploads/20221223/ac110f88206daeab6c0cf38ebf5fe9ed.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="从零制作响应式网站—Grid布局"> </a> <dl> <dt class="lineTwoOverflow"><a href="/course/28.html" target="_blank" class="aBlack" title="从零制作响应式网站—Grid布局">从零制作响应式网站—Grid布局</a></dt> <dd class="cont1 lineTwoOverflow"> 本系列教程将展示从零制作一个假想的网络科技公司官网,分为导航,轮播,关于我们,成功案例,服务流程,团队介绍,数据部分,公司动态,底部信息等内容区块。网站整体采用CSSGrid布局,支持响应式,有流畅过渡和展现动画。 </dd> <dd class="cont2">484次学习</dd> </dl> </li> </ul> </div> <div class="rightContBox"> <div class="rightTit"> <a href="/ai.html" class="more" title="查看更多">查看更多<i class="iconfont"></i></a> <div class="tit lineOverflow">AI推荐</div> </div> <ul class="lessonRecomRList"> <li> <a href="/ai/13013.html" target="_blank" title="茅茅虫AIGC检测:精准识别AI生成内容,保障学术诚信" class="img_box"> <img src="/uploads/20250615/1749942634684e016a05088.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="茅茅虫AIGC检测:精准识别AI生成内容,保障学术诚信" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13013.html" class="aBlack" target="_blank" title="茅茅虫AIGC检测">茅茅虫AIGC检测</a></dt> <dd class="cont1 lineTwoOverflow"> 茅茅虫AIGC检测,湖南茅茅虫科技有限公司倾力打造,运用NLP技术精准识别AI生成文本,提供论文、专著等学术文本的AIGC检测服务。支持多种格式,生成可视化报告,保障您的学术诚信和内容质量。 </dd> <dd class="cont2">58次使用</dd> </dl> </li> <li> <a href="/ai/13012.html" target="_blank" title="赛林匹克平台:科技赛事聚合,赋能AI、算力、量子计算创新" class="img_box"> <img src="/uploads/20250608/1749370801684547b1cedf0.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="赛林匹克平台:科技赛事聚合,赋能AI、算力、量子计算创新" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13012.html" class="aBlack" target="_blank" title="赛林匹克平台(Challympics)">赛林匹克平台(Challympics)</a></dt> <dd class="cont1 lineTwoOverflow"> 探索赛林匹克平台Challympics,一个聚焦人工智能、算力算法、量子计算等前沿技术的赛事聚合平台。连接产学研用,助力科技创新与产业升级。 </dd> <dd class="cont2">76次使用</dd> </dl> </li> <li> <a href="/ai/13011.html" target="_blank" title="SEO 笔格AIPPT:AI智能PPT制作,免费生成,高效演示" class="img_box"> <img src="/uploads/20250608/17493702026845455aaeaaa.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="SEO 笔格AIPPT:AI智能PPT制作,免费生成,高效演示" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13011.html" class="aBlack" target="_blank" title="笔格AIPPT">笔格AIPPT</a></dt> <dd class="cont1 lineTwoOverflow"> SEO 笔格AIPPT是135编辑器推出的AI智能PPT制作平台,依托DeepSeek大模型,实现智能大纲生成、一键PPT生成、AI文字优化、图像生成等功能。免费试用,提升PPT制作效率,适用于商务演示、教育培训等多种场景。 </dd> <dd class="cont2">86次使用</dd> </dl> </li> <li> <a href="/ai/13010.html" target="_blank" title="稿定PPT:在线AI演示设计,高效PPT制作工具" class="img_box"> <img src="/uploads/20250608/1749374402684555c23e035.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="稿定PPT:在线AI演示设计,高效PPT制作工具" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13010.html" class="aBlack" target="_blank" title="稿定PPT">稿定PPT</a></dt> <dd class="cont1 lineTwoOverflow"> 告别PPT制作难题!稿定PPT提供海量模板、AI智能生成、在线协作,助您轻松制作专业演示文稿。职场办公、教育学习、企业服务全覆盖,降本增效,释放创意! </dd> <dd class="cont2">79次使用</dd> </dl> </li> <li> <a href="/ai/13009.html" target="_blank" title="Suno苏诺中文版:AI音乐创作平台,人人都是音乐家" class="img_box"> <img src="/uploads/20250608/174937140168454a09ec362.jpg" onerror="this.onerror='',this.src='/assets/images/moren/morentu.png'" alt="Suno苏诺中文版:AI音乐创作平台,人人都是音乐家" style="object-fit:cover;width:100%;height:100%;"> </a> <dl> <dt class="lineTwoOverflow"><a href="/ai/13009.html" class="aBlack" target="_blank" title="Suno苏诺中文版">Suno苏诺中文版</a></dt> <dd class="cont1 lineTwoOverflow"> 探索Suno苏诺中文版,一款颠覆传统音乐创作的AI平台。无需专业技能,轻松创作个性化音乐。智能词曲生成、风格迁移、海量音效,释放您的音乐灵感! </dd> <dd class="cont2">83次使用</dd> </dl> </li> </ul> </div> <!-- 相关文章 --> <div class="rightContBox"> <div class="rightTit"> <a href="/articlelist.html" class="more" title="查看更多">查看更多<i class="iconfont"></i></a> <div class="tit lineOverflow">相关文章</div> </div> <ul class="aboutArticleRList"> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/72840.html" class="aBlack" title="优化用户界面体验的秘密武器:CSS开发项目经验大揭秘">优化用户界面体验的秘密武器:CSS开发项目经验大揭秘</a></dt> <dd> <span class="left">2023-11-03</span> <span class="right">501浏览</span> </dd> </dl> </li> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/76259.html" class="aBlack" title="使用微信小程序实现图片轮播特效">使用微信小程序实现图片轮播特效</a></dt> <dd> <span class="left">2023-11-21</span> <span class="right">501浏览</span> </dd> </dl> </li> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/83771.html" class="aBlack" title="解析sessionStorage的存储能力与限制">解析sessionStorage的存储能力与限制</a></dt> <dd> <span class="left">2024-01-11</span> <span class="right">501浏览</span> </dd> </dl> </li> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/85057.html" class="aBlack" title="探索冒泡活动对于团队合作的推动力">探索冒泡活动对于团队合作的推动力</a></dt> <dd> <span class="left">2024-01-13</span> <span class="right">501浏览</span> </dd> </dl> </li> <li> <dl> <dt class="lineTwoOverflow"><a href="/article/91359.html" class="aBlack" title="UI设计中为何选择绝对定位的智慧之道">UI设计中为何选择绝对定位的智慧之道</a></dt> <dd> <span class="left">2024-02-03</span> <span class="right">501浏览</span> </dd> </dl> </li> </ul> </div> </div> </div> <div class="footer"> <div class="footerIn"> <div class="footLeft"> <div class="linkBox"> <a href="/about/1.html" target="_blank" class="aBlack" title="关于我们">关于我们</a> <a href="/about/5.html" target="_blank" class="aBlack" title="免责声明">免责声明</a> <a href="#" class="aBlack" title="意见反馈">意见反馈</a> <a href="/about/2.html" class="aBlack" target="_blank" title="联系我们">联系我们</a> <a href="/send.html" class="aBlack" title="广告合作">内容提交</a> </div> <div class="footTip">Golang学习网:公益在线Go学习平台,帮助Go学习者快速成长!</div> <div class="shareBox"> <span><i class="qq"></i>技术交流群</span> </div> <div class="copyRight"> Copyright 2023 http://www.17golang.com/ All Rights Reserved | <a href="https://beian.miit.gov.cn/" target="_blank" title="备案">苏ICP备2023003363号-1</a> </div> </div> <div class="footRight"> <ul class="encodeList"> <li> <div class="encodeImg"> <img src="/assets/examples/qrcode_for_gh.jpg" alt="Golang学习网"> </div> <div class="tit">关注公众号</div> <div class="tip">Golang学习网</div> </li> <div class="clear"></div> </ul> </div> <div class="clear"></div> </div> </div> <!-- 微信登录弹窗 --> <style> .popupBg .n-error{ color: red; } </style> <div class="popupBg"> <div class="loginBoxBox"> <div class="imgbg"> <img src="/assets/images/leftlogo.jpg" alt=""> </div> <!-- 微信登录 --> <div class="loginInfo encodeLogin" style="display: none;"> <div class="closeIcon" onclick="$('.popupBg').hide();"></div> <div class="changeLoginType cursorPointer create_wxqrcode" onclick="$('.loginInfo').hide();$('.passwordLogin').show();"> <div class="tip">密码登录在这里</div> </div> <div class="encodeInfo"> <div class="tit"><i></i> 微信扫码登录或注册</div> <div class="encodeImg"> <span id="wx_login_qrcode"><img src="/assets/examples/code.png" alt="二维码"></span> <!-- <div class="refreshBox"> <p>二维码失效</p> <button type="button" class="create_wxqrcode">刷新1111</button> </div> --> </div> <div class="tip">打开微信扫一扫,快速登录/注册</div> </div> <div class="beforeLoginTip">登录即同意 <a href="#" class="aBlue" title="用户协议">用户协议</a> 和 <a href="#" class="aBlue" title="隐私政策">隐私政策</a></div> </div> <!-- 密码登录 --> <div class="loginInfo passwordLogin"> <div class="closeIcon" onclick="$('.popupBg').hide();"></div> <div class="changeLoginType cursorPointer create_wxqrcode" onclick="$('.loginInfo').hide();$('.encodeLogin').show();"> <div class="tip">微信登录更方便</div> </div> <div class="passwordInfo"> <ul class="logintabs selfTabMenu"> <li class="selfTabItem loginFormLi curr">密码登录</li> <li class="selfTabItem registerFormBox ">注册账号</li> </ul> <div class="selfTabContBox"> <div class="selfTabCont loginFormBox" style="display: block;"> <form name="form" id="login-form" class="form-vertical form" method="POST" action="/index/user/login"> <input type="hidden" name="url" value="//www.17golang.com/article/173184.html"/> <input type="hidden" name="__token__" value="4d5e8bcd2fc57463a246476811f40cad" /> <div class="form-group" style="height:70px;"> <input class="form-control" id="account" type="text" name="account" value="" data-rule="required" placeholder="邮箱/用户名" autocomplete="off"> </div> <div class="form-group" style="height:70px;"> <input class="form-control" id="password" type="password" name="password" data-rule="required;password" placeholder="密码" autocomplete="off"> </div> <div class="codeBox" style="height:70px;"> <div class="form-group" style="height:70px; width:205px; float: left;"> <input type="text" name="captcha" class="form-control" placeholder="验证码" data-rule="required;length(4)" /> </div> <span class="input-group-btn" style="padding:0;border:none;"> <img src="/captcha.html" width="100" height="45" onclick="this.src = '/captcha.html?r=' + Math.random();"/> </span> </div> <div class="other"> <a href="#" class="forgetPwd aGray" onclick="$('.loginInfo').hide();$('.passwordForget').show();" title="忘记密码">忘记密码</a> </div> <div class="loginBtn mt25"> <button type="submit">登录</button> </div> </form> </div> <div class="selfTabCont registerFormBox" style="display: none;"> <form name="form1" id="register-form" class="form-vertical form" method="POST" action="/index/user/register"> <input type="hidden" name="invite_user_id" value="0"/> <input type="hidden" name="url" value="//www.17golang.com/article/173184.html"/> <input type="hidden" name="__token__" value="4d5e8bcd2fc57463a246476811f40cad" /> <div class="form-group" style="height:70px;"> <input type="text" name="email" id="email2" data-rule="required;email" class="form-control" placeholder="邮箱"> </div> <div class="form-group" style="height:70px;"> <input type="text" id="username" name="username" data-rule="required;username" class="form-control" placeholder="用户名必须3-30个字符"> </div> <div class="form-group" style="height:70px;"> <input type="password" id="password2" name="password" data-rule="required;password" class="form-control" placeholder="密码必须6-30个字符"> </div> <div class="codeBox" style="height:70px;"> <div class="form-group" style="height:70px; width:205px; float: left;"> <input type="text" name="captcha" class="form-control" placeholder="验证码" data-rule="required;length(4)" /> </div> <span class="input-group-btn" style="padding:0;border:none;"> <img src="/captcha.html" width="100" height="45" onclick="this.src = '/captcha.html?r=' + Math.random();"/> </span> </div> <div class="loginBtn"> <button type="submit">注册</button> </div> </form> </div> </div> </div> <div class="beforeLoginTip">登录即同意 <a href="https://www.17golang.com/about/3.html" target="_blank" class="aBlue" title="用户协议">用户协议</a> 和 <a href="https://www.17golang.com/about/4.html" target="_blank" class="aBlue" title="隐私政策">隐私政策</a></div> </div> <!-- 重置密码 --> <div class="loginInfo passwordForget"> <div class="closeIcon" onclick="$('.popupBg').hide();"></div> <div class="returnLogin cursorPointer" onclick="$('.passwordForget').hide();$('.passwordLogin').show();">返回登录</div> <div class="passwordInfo"> <ul class="logintabs selfTabMenu"> <li class="selfTabItem">重置密码</li> </ul> <div class="selfTabContBox"> <div class="selfTabCont"> <form id="resetpwd-form" class="form-horizontal form-layer nice-validator n-default n-bootstrap form" method="POST" action="/api/user/resetpwd.html" novalidate="novalidate"> <div style="height:70px;"> <input type="text" class="form-control" id="email" name="email" value="" placeholder="输入邮箱" aria-invalid="true"> </div> <div class="codeBox" style="height:70px;"> <div class="form-group" style="height:70px; width:205px; float: left;"> <input type="text" name="captcha" class="form-control" placeholder="验证码" /> </div> <span class="input-group-btn" style="padding:0;border:none;"> <a href="javascript:;" class="btn btn-primary btn-captcha cursorPointer" style="background: #2080F8; border-radius: 4px; color: #fff; padding: 12px; position: absolute;" data-url="/api/ems/send.html" data-type="email" data-event="resetpwd">发送验证码</a> </span> </div> <input type="password" class="form-control" id="newpassword" name="newpassword" value="" placeholder="请输入6-18位密码"> <div class="loginBtn mt25"> <button type="submit">重置密码</button> </div> </form> </div> </div> </div> </div> </div> </div> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?3dc5666f6478c7bf39cd5c91e597423d"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script src="/assets/js/require.js" data-main="/assets/js/require-frontend.js?v=1671101972"></script> </body> </html>