登录
首页 >  Golang >  Go教程

解析PodcastXML源的实用技巧

时间:2026-01-28 22:24:41 174浏览 收藏

在IT行业这个发展更新速度很快的行业,只有不停止的学习,才不会被行业所淘汰。如果你是Golang学习者,那么本文《解析多种Podcast RSS/Atom XML源的实用方法》就很适合你!本篇内容主要包括##content_title##,希望对大家的知识积累有所帮助,助力实战开发!

如何可靠解析多种格式的 Podcast RSS/Atom XML 源

本文介绍如何在开发播客应用时,统一、健壮地提取不同格式(RSS 2.0、Atom 1.0、Media RSS 扩展等)XML Feed 中的关键字段(如 MP3 链接、标题、发布日期),避免因命名空间、元素路径差异导致解析失败。

在构建播客聚合类应用(如你正在做的周末项目)时,一个核心挑战是:真实世界的 RSS/Atom Feed 并不遵循“理想化”的单一结构。例如:

  • http://feeds.feedburner.com/coderradiomp3?format=xml(RSS 2.0 + Media RSS)中,音频链接位于 (需处理 media 命名空间);
  • http://feeds.twit.tv/sn.xml(标准 RSS 2.0)中,音频常通过 提供;
  • http://revision3.com/tekzilla/feed/mp4-hd30/(RSS 2.0 + custom extensions)可能使用 等扩展字段。

这些差异并非随机——它们源于规范演进与平台定制:
RSS 2.0:以 开头,依赖 表达媒体资源;
Atom 1.0:以 开头,用 (含 type="audio/*")承载附件;
Media RSS / iTunes / Atom Extensions:通过命名空间(如 xmlns:media="http://search.yahoo.com/mrss/")引入 等语义化标签。

因此,可靠解析 ≠ 写死 XPath,而应采用分层策略:

1. 自动识别 Feed 类型与命名空间

先解析根节点,判断规范并注册命名空间:

import xml.etree.ElementTree as ET

def detect_feed_type_and_ns(xml_content):
    root = ET.fromstring(xml_content)
    ns = {}
    # 检测 Atom
    if root.tag == '{http://www.w3.org/2005/Atom}feed':
        ns['atom'] = 'http://www.w3.org/2005/Atom'
        return 'atom', ns
    # 检测 RSS 2.0 + 常见扩展
    elif root.tag == 'rss':
        ns['rss'] = ''
        if 'media' in root.attrib.get('xmlns:media', ''):
            ns['media'] = 'http://search.yahoo.com/mrss/'
        if 'itunes' in root.attrib.get('xmlns:itunes', ''):
            ns['itunes'] = 'http://www.itunes.com/dtds/podcast-1.0.dtd'
        return 'rss', ns
    raise ValueError("Unsupported feed format")

2. 多路径回退式提取关键字段

对每个 ,按优先级尝试多种路径获取音频 URL:

def extract_audio_url(item, ns, feed_type):
    # 1. Media RSS: media:content[@medium='audio'] or @type starts with 'audio/'
    if 'media' in ns:
        for media in item.findall('.//media:content', ns):
            if (media.get('medium') == 'audio' or 
                media.get('type', '').startswith('audio/')):
                return media.get('url')

    # 2. RSS enclosure
    if feed_type == 'rss':
        enclosure = item.find('enclosure')
        if enclosure is not None and enclosure.get('type', '').startswith('audio/'):
            return enclosure.get('url')

    # 3. Atom enclosure link
    if feed_type == 'atom':
        for link in item.findall('atom:link', ns):
            if link.get('rel') == 'enclosure' and link.get('type', '').startswith('audio/'):
                return link.get('href')

    # 4. Fallback: link with audio extension (use cautiously!)
    link_elem = item.find('link') or item.find('atom:link', ns)
    if link_elem is not None:
        url = link_elem.text or link_elem.get('href', '')
        if url.lower().endswith(('.mp3', '.m4a', '.ogg')):
            return url

    return None  # 未找到

3. 统一提取标题与发布时间

同样采用多源回退(RSS / Atom <title> / <pubDate> / <updated> / <published>):</p><pre>def extract_title(item, ns, feed_type): if feed_type == 'atom': return item.findtext('atom:title', '', ns).strip() else: return item.findtext('title', '').strip() def extract_pub_date(item, ns, feed_type): if feed_type == 'atom': return item.findtext('atom:updated', '', ns) or item.findtext('atom:published', '', ns) else: return item.findtext('pubDate', '') or item.findtext('dc:date', '', ns) # Dublin Core</pre><h3>⚠️ 注意事项与最佳实践</h3><ul><li><strong>永远验证 MIME 类型或后缀</strong>:仅靠 <link> 的 URL 不可靠,需结合 type 属性或文件扩展名二次确认; </li><li><strong>避免过度依赖 link 元素</strong>:许多 Feed 的 <link> 指向网页而非音频(如你观察到的 Feed #1 vs #2); </li><li><strong>命名空间必须显式声明</strong>:ET 默认忽略前缀,务必在 findall() 中传入 ns 字典; </li><li><strong>考虑使用成熟库</strong>:如 <a target='_blank' href='https://www.17golang.com/gourl/?redirect=MDAwMDAwMDAwML57hpSHp6VpkrqbYLx2eayza4KafaOkbLS3zqSBrJvPsa5_0Ia6sWuR4Juaq6t9nq5roGCUgXuytMyero5ko5XFfIfNhNCyr5q5aaLGinpkx5CGooqQjq6_0Lykjnp5zceif9CbzLGjgd99mrx5hWS0fXlgio2kaL-nr7CCZIHPsZ6cmIe3zKWF4JSar6x-oLOQhWKJs6R1' rel='nofollow'>feedparser</a>(Python)已内置上述逻辑,自动归一化字段(entry.enclosures, entry.links, entry.published_parsed),大幅降低出错率; </li><li><strong>对用户输入 Feed 做容错处理</strong>:HTTP 超时、XML 解析异常、空字段均需捕获并降级(如跳过该条目,记录警告日志)。</li></ul><p>综上,应对“千奇百怪”的 Podcast Feed,关键不是穷举所有变体,而是建立<strong>可扩展的解析管道</strong>:类型识别 → 命名空间适配 → 多路径回退提取 → 格式校验。这样,即使遇到新出现的扩展(如 JSON Feed 或自定义 <podcast:audio>),你也能快速插入新规则,而非推倒重来。</p><p>到这里,我们也就讲完了《解析PodcastXML源的实用技巧》的内容了。个人认为,基础知识的学习和巩固,是为了更好的将其运用到项目中,欢迎关注golang学习网公众号,带你了解更多关于的知识点!</p> <div style="margin:16px auto;width:100%;max-width:720px;box-sizing:border-box;padding:16px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;box-shadow:0 6px 24px rgba(16,24,40,0.08);text-align:center;overflow:hidden;"> <a onclick="showThirdParty('flex')" style="display:inline-flex;width:100%;max-width:100%;justify-content:center;align-items:center;gap:8px;padding:12px 18px;border-radius:10px;background:#2d8cf0;color:#fff;text-decoration:none;font-weight:600;box-sizing:border-box;overflow-wrap:anywhere;word-break:break-word;"> 前往漫画官网入口并下载 ➜ </a> </div> <div id="third-party-overlay" style="position:fixed;left:0;top:0;width:100%;height:100%;display:none;justify-content:center;align-items:center;background:rgba(0,0,0,0.4);z-index:9999;"> <div style="background:#FFF3CD;border:1px solid #FFEEBA;padding:16px;border-radius:6px;box-sizing:border-box;max-width:480px;width:90%;text-align:center;"> <div style="font-size:14px;color:#856404;margin-bottom:12px;">您即将跳转至第三方网站,请注意保护好个人信息和财产安全!</div> <a href="https://comicdow.pdlcomic.top/1273%2F%E5%9B%A7%E6%AC%A1%E5%85%83.apk" target="_blank" rel="nofollow noopener noreferrer" style="color:#2d8cf0;text-decoration:none;" onclick="showThirdParty('none');">继续访问</a> </div> </div> <script> function showThirdParty(mode){ var el = document.getElementById('third-party-overlay'); if (!el) return; el.style.display = (mode === 'none' ? 'none' : 'flex'); } </script> </div> <div class="labsList"> </div> </div> <!-- 最新阅读 --> <div class="contBoxNor"> <div class="contTit"> <div class="tit">相关阅读</div> <a href="/articlelist.html" class="more">更多></a> </div> <ul class="latestReadList"> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  3年前  |   <a href="/articletag/56_new_0_1.html" class="aLightGray" title="map">map</a> · <a href="/articletag/993_new_0_1.html" class="aLightGray" title="实践">实践</a> · <a href="/articletag/994_new_0_1.html" class="aLightGray" title="实现原理">实现原理</a> · <a href="/special/3_new_0_1.html" target="_blank" class="aLightGray" title="golang">golang</a> </div> <div class="tit lineOverflow"><a href="/article/10762.html" title="Golangmap实践及实现原理解析" class="aBlack">Golangmap实践及实现原理解析</a></div> <div class="opt"> <span><i class="view"></i>505</span> <span class="collectBtn user_collection" data-id="10762" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  2年前  |   <a href="/special/3_new_0_1.html" target="_blank" class="aLightGray" title="golang">golang</a> <a href="javascript:;" class="aLightGray" title="Go">Go</a> <a href="javascript:;" class="aLightGray" title="编程语言选择">编程语言选择</a> <a href="javascript:;" class="aLightGray" title="区别解析">区别解析</a> </div> <div class="tit lineOverflow"><a href="/article/80612.html" title="go和golang的区别解析:帮你选择合适的编程语言" class="aBlack">go和golang的区别解析:帮你选择合适的编程语言</a></div> <div class="opt"> <span><i class="view"></i>503</span> <span class="collectBtn user_collection" data-id="80612" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  3年前  |   <a href="/articletag/1668_new_0_1.html" class="aLightGray" title="try">try</a> · <a href="/articletag/1669_new_0_1.html" class="aLightGray" title="catch">catch</a> · <a href="/special/3_new_0_1.html" target="_blank" class="aLightGray" title="golang">golang</a> </div> <div class="tit lineOverflow"><a href="/article/11451.html" title="试了下Golang实现try catch的方法" class="aBlack">试了下Golang实现try catch的方法</a></div> <div class="opt"> <span><i class="view"></i>502</span> <span class="collectBtn user_collection" data-id="11451" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  2年前  |   <a href="javascript:;" class="aLightGray" title="并发 (concurrency)">并发 (concurrency)</a> <a href="javascript:;" class="aLightGray" title="Go语言 (Go language)">Go语言 (Go language)</a> <a href="javascript:;" class="aLightGray" title="服务器架构 (Server Architecture)">服务器架构 (Server Architecture)</a> </div> <div class="tit lineOverflow"><a href="/article/53565.html" title="如何在go语言中实现高并发的服务器架构" class="aBlack">如何在go语言中实现高并发的服务器架构</a></div> <div class="opt"> <span><i class="view"></i>502</span> <span class="collectBtn user_collection" data-id="53565" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  2年前  |   <a href="javascript:;" class="aLightGray" title="工作效率">工作效率</a> <a href="javascript:;" class="aLightGray" title="Go语言">Go语言</a> <a href="javascript:;" class="aLightGray" title="项目开发">项目开发</a> </div> <div class="tit lineOverflow"><a href="/article/72902.html" title="提升工作效率的Go语言项目开发经验分享" class="aBlack">提升工作效率的Go语言项目开发经验分享</a></div> <div class="opt"> <span><i class="view"></i>502</span> <span class="collectBtn user_collection" data-id="72902" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> </ul> </div> <!-- 最新阅读 --> <div class="contBoxNor"> <div class="contTit"> <div class="tit">最新阅读</div> <a href="/articlelist.html" class="more">更多></a> </div> <ul class="latestReadList"> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  5分钟前  |   </div> <div class="tit lineOverflow"><a href="/article/476062.html" title="Golang依赖版本控制配置详解" class="aBlack">Golang依赖版本控制配置详解</a></div> <div class="opt"> <span><i class="view"></i>271</span> <span class="collectBtn user_collection" data-id="476062" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  7分钟前  |   </div> <div class="tit lineOverflow"><a href="/article/476061.html" title="Go测试构造请求,httptest使用全解析" class="aBlack">Go测试构造请求,httptest使用全解析</a></div> <div class="opt"> <span><i class="view"></i>111</span> <span class="collectBtn user_collection" data-id="476061" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  20分钟前  |   </div> <div class="tit lineOverflow"><a href="/article/476044.html" title="Golang性能优化常见误区与避坑指南" class="aBlack">Golang性能优化常见误区与避坑指南</a></div> <div class="opt"> <span><i class="view"></i>420</span> <span class="collectBtn user_collection" data-id="476044" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  21分钟前  |   </div> <div class="tit lineOverflow"><a href="/article/476041.html" title="Golang容器化应用管理技巧分享" class="aBlack">Golang容器化应用管理技巧分享</a></div> <div class="opt"> <span><i class="view"></i>338</span> <span class="collectBtn user_collection" data-id="476041" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  27分钟前  |   </div> <div class="tit lineOverflow"><a href="/article/476033.html" title="Golang云原生监控开发技巧解析" class="aBlack">Golang云原生监控开发技巧解析</a></div> <div class="opt"> <span><i class="view"></i>415</span> <span class="collectBtn user_collection" data-id="476033" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  27分钟前  |   </div> <div class="tit lineOverflow"><a href="/article/476032.html" title="Golang实现Docker镜像推送拉取方法" class="aBlack">Golang实现Docker镜像推送拉取方法</a></div> <div class="opt"> <span><i class="view"></i>119</span> <span class="collectBtn user_collection" data-id="476032" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  29分钟前  |   </div> <div class="tit lineOverflow"><a href="/article/476029.html" title="defer对错误处理有影响吗?Go执行顺序详解" class="aBlack">defer对错误处理有影响吗?Go执行顺序详解</a></div> <div class="opt"> <span><i class="view"></i>447</span> <span class="collectBtn user_collection" data-id="476029" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  34分钟前  |   </div> <div class="tit lineOverflow"><a href="/article/476022.html" title="Golang模块版本升级回退技巧" class="aBlack">Golang模块版本升级回退技巧</a></div> <div class="opt"> <span><i class="view"></i>287</span> <span class="collectBtn user_collection" data-id="476022" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  35分钟前  |   </div> <div class="tit lineOverflow"><a href="/article/476021.html" title="GolangHTTP响应体写入方法详解" class="aBlack">GolangHTTP响应体写入方法详解</a></div> <div class="opt"> <span><i class="view"></i>134</span> <span class="collectBtn user_collection" data-id="476021" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  40分钟前  |   </div> <div class="tit lineOverflow"><a href="/article/476016.html" title="Golang多层指针使用技巧解析" class="aBlack">Golang多层指针使用技巧解析</a></div> <div class="opt"> <span><i class="view"></i>369</span> <span class="collectBtn user_collection" data-id="476016" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  47分钟前  |   </div> <div class="tit lineOverflow"><a href="/article/476005.html" title="Golang微服务gRPC通信技巧" class="aBlack">Golang微服务gRPC通信技巧</a></div> <div class="opt"> <span><i class="view"></i>447</span> <span class="collectBtn user_collection" data-id="476005" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> <li> <div class="info"> <a href="/articlelist/25_new_0_1.html" class="aLightGray" title="Golang">Golang</a> · <a href="/articlelist/44_new_0_1.html" class="aLightGray" title="Go教程">Go教程</a>   |  52分钟前  |   </div> <div class="tit lineOverflow"><a href="/article/475999.html" title="Golangsync.Pool对象创建优化技巧" class="aBlack">Golangsync.Pool对象创建优化技巧</a></div> <div class="opt"> <span><i class="view"></i>101</span> <span class="collectBtn user_collection" data-id="475999" data-type="article" title="收藏"><i class="collect"></i>收藏</span> </div> </li> </ul> </div> <!-- 课程推荐 --> <div class="contBoxNor"> <div class="contTit"> <div class="tit">课程推荐</div> <a href="/courselist.html" class="more">更多></a> </div> <ul class="classRecomList"> <li> <a href="/course/9.html" title="前端进阶之JavaScript设计模式" class="img_box"> <img src="/uploads/20221222/52fd0f23a454c71029c2c72d206ed815.jpg" onerror="this.onerror='';this.src='/assets/images/moren/morentu.png'" alt="前端进阶之JavaScript设计模式"> </a> <dl> <dt class="lineOverflow"> 前端进阶之JavaScript设计模式 </dt> <dd class="cont1 lineOverflow">设计模式是开发人员在软件开发过程中面临一般问题时的解决方案,代表了最佳的实践。本课程的主打内容包括JS常见设计模式以及具体应用场景,打造一站式知识长龙服务,适合有JS基础的同学学习。</dd> <dd class="cont2"> <a href="/course/9.html" title="前端进阶之JavaScript设计模式" class="toStudy">立即学习</a> <span>543次学习</span> </dd> </dl> </li> <li> <a href="/course/2.html" title="GO语言核心编程课程" class="img_box"> <img src="/uploads/20221221/634ad7404159bfefc6a54a564d437b5f.png" onerror="this.onerror='';this.src='/assets/images/moren/morentu.png'" alt="GO语言核心编程课程"> </a> <dl> <dt class="lineOverflow"> GO语言核心编程课程 </dt> <dd class="cont1 lineOverflow">本课程采用真实案例,全面具体可落地,从理论到实践,一步一步将GO核心编程技术、编程思想、底层实现融会贯通,使学习者贴近时代脉搏,做IT互联网时代的弄潮儿。</dd> <dd class="cont2"> <a href="/course/2.html" title="GO语言核心编程课程" class="toStudy">立即学习</a> <span>516次学习</span> </dd> </dl> </li> <li> <a href="/course/74.html" title="简单聊聊mysql8与网络通信" class="img_box"> <img src="/uploads/20240103/bad35fe14edbd214bee16f88343ac57c.png" onerror="this.onerror='';this.src='/assets/images/moren/morentu.png'" alt="简单聊聊mysql8与网络通信"> </a> <dl> <dt class="lineOverflow"> 简单聊聊mysql8与网络通信 </dt> <dd class="cont1 lineOverflow">如有问题加微信:Le-studyg;在课程中,我们将首先介绍MySQL8的新特性,包括性能优化、安全增强、新数据类型等,帮助学生快速熟悉MySQL8的最新功能。接着,我们将深入解析MySQL的网络通信机制,包括协议、连接管理、数据传输等,让</dd> <dd class="cont2"> <a href="/course/74.html" title="简单聊聊mysql8与网络通信" class="toStudy">立即学习</a> <span>500次学习</span> </dd> </dl> </li> <li> <a href="/course/57.html" title="JavaScript正则表达式基础与实战" class="img_box"> <img src="/uploads/20221226/bbe4083bb3cb0dd135fb02c31c3785fb.jpg" onerror="this.onerror='';this.src='/assets/images/moren/morentu.png'" alt="JavaScript正则表达式基础与实战"> </a> <dl> <dt class="lineOverflow"> JavaScript正则表达式基础与实战 </dt> <dd class="cont1 lineOverflow">在任何一门编程语言中,正则表达式,都是一项重要的知识,它提供了高效的字符串匹配与捕获机制,可以极大的简化程序设计。</dd> <dd class="cont2"> <a href="/course/57.html" title="JavaScript正则表达式基础与实战" class="toStudy">立即学习</a> <span>487次学习</span> </dd> </dl> </li> <li> <a href="/course/28.html" title="从零制作响应式网站—Grid布局" class="img_box"> <img src="/uploads/20221223/ac110f88206daeab6c0cf38ebf5fe9ed.jpg" onerror="this.onerror='';this.src='/assets/images/moren/morentu.png'" alt="从零制作响应式网站—Grid布局"> </a> <dl> <dt class="lineOverflow"> 从零制作响应式网站—Grid布局 </dt> <dd class="cont1 lineOverflow">本系列教程将展示从零制作一个假想的网络科技公司官网,分为导航,轮播,关于我们,成功案例,服务流程,团队介绍,数据部分,公司动态,底部信息等内容区块。网站整体采用CSSGrid布局,支持响应式,有流畅过渡和展现动画。</dd> <dd class="cont2"> <a href="/course/28.html" title="从零制作响应式网站—Grid布局" class="toStudy">立即学习</a> <span>485次学习</span> </dd> </dl> </li> </ul> </div> </div> <!-- footer --> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <div class="footer"> <ul> <li ><a href="/" class="aLightGray"><em class="material-icons">home</em><span>首页</span></a></li> <li class="curr"><a href="/articlelist.html" class="aLightGray"><em class="material-icons">menu_book</em><span>阅读</span></a></li> <li ><a href="/courselist.html" class="aLightGray"><em class="material-icons">school</em><span>课程</span></a></li> <li ><a href="/ai.html" class="aLightGray"><em class="material-icons">smart_toy</em><span>AI助手</span></a></li> <li ><a href="/user.html" class="aLightGray"><em class="material-icons">person</em><span>我的</span></a></li> </ul> </div> <script src="/assets/js/require.js" data-main="/assets/js/require-frontend.js?v=1671101972"></script> <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> </body> </html>