RSS 教程

RSS 元素

上一篇:RSS , <link>, 和 <description> 元素</a> <a href="co-8966.html" >下一篇:RSS <generator> 元素 </a> </div> <div class="article-intro" id="content"><hr/><a href="co-2344.html"><img alt="RSS 参考手册" class="navup" src="/uploadfile/up/3e/a9/18/41e5761fb9ace3ecbd611c59b218a93e.jpg"/> 完整 RSS 参考手册</a><hr/><h2>定义和用法</h2><p><docs> 元素规定指向当前 RSS 文件所用格式说明的 URL。</p><hr/><div class="example"> <h2 class="example">实例</h2> <div class="example_code"> <div class="hl-main"><span class="hl-brackets"><?</span><span class="hl-reserved">xml</span><span class="hl-code"> </span><span class="hl-var">version</span><span class="hl-code">=</span><span class="hl-quotes">"</span><span class="hl-string">1.0</span><span class="hl-quotes">"</span><span class="hl-code"> </span><span class="hl-var">encoding</span><span class="hl-code">=</span><span class="hl-quotes">"</span><span class="hl-string">UTF-8</span><span class="hl-quotes">"</span><span class="hl-code"> </span><span class="hl-brackets">?></span><span class="hl-code"> </span><span class="hl-brackets"><</span><span class="hl-reserved">rss</span><span class="hl-code"> </span><span class="hl-var">version</span><span class="hl-code">=</span><span class="hl-quotes">"</span><span class="hl-string">2.0</span><span class="hl-quotes">"</span><span class="hl-brackets">></span><span class="hl-code"> </span><span class="hl-brackets"><</span><span class="hl-reserved">channel</span><span class="hl-brackets">></span><span class="hl-code"> </span><span class="hl-brackets"><</span><span class="hl-reserved">title</span><span class="hl-brackets">></span><span class="hl-code">小白教程首页</span><span class="hl-brackets"></</span><span class="hl-reserved">title</span><span class="hl-brackets">></span><span class="hl-code"> </span><span class="hl-brackets"><</span><span class="hl-reserved">link</span><span class="hl-brackets">></span><span class="hl-code"></span><span class="hl-brackets"></</span><span class="hl-reserved">link</span><span class="hl-brackets">></span><span class="hl-code"> </span><span class="hl-brackets"><</span><span class="hl-reserved">description</span><span class="hl-brackets">></span><span class="hl-code">免费编程教程</span><span class="hl-brackets"></</span><span class="hl-reserved">description</span><span class="hl-brackets">></span><span class="hl-code"> </span><span class="hl-brackets"><</span><span class="hl-reserved">docs</span><span class="hl-brackets">></span><span class="hl-code">https://cyber.harvard.edu/rss/rss.html</span><span class="hl-brackets"></</span><span class="hl-reserved">docs</span><span class="hl-brackets">></span><span class="hl-code"> </span><span class="hl-brackets"><</span><span class="hl-reserved">item</span><span class="hl-brackets">></span><span class="hl-code"> </span><span class="hl-brackets"><</span><span class="hl-reserved">title</span><span class="hl-brackets">></span><span class="hl-code">RSS 教程</span><span class="hl-brackets"></</span><span class="hl-reserved">title</span><span class="hl-brackets">></span><span class="hl-code"> </span><span class="hl-brackets"><</span><span class="hl-reserved">link</span><span class="hl-brackets">></span><span class="hl-code">/rss</span><span class="hl-brackets"></</span><span class="hl-reserved">link</span><span class="hl-brackets">></span><span class="hl-code"> </span><span class="hl-brackets"><</span><span class="hl-reserved">description</span><span class="hl-brackets">></span><span class="hl-code">小白教程 Rss 教程</span><span class="hl-brackets"></</span><span class="hl-reserved">description</span><span class="hl-brackets">></span><span class="hl-code"> </span><span class="hl-brackets"></</span><span class="hl-reserved">item</span><span class="hl-brackets">></span><span class="hl-code"> </span><span class="hl-brackets"></</span><span class="hl-reserved">channel</span><span class="hl-brackets">></span><span class="hl-code"> </span><span class="hl-brackets"></</span><span class="hl-reserved">rss</span><span class="hl-brackets">></span></div> </div> <br/> </div><hr/><a href="co-2344.html"><img alt="RSS 参考手册" class="navup" src="/uploadfile/up/3e/a9/18/41e5761fb9ace3ecbd611c59b218a93e.jpg"/> 完整 RSS 参考手册</a>其他扩展</div> <div class="pre-and-next"> <a href="co-8964.html">上一篇:RSS <title>, <link>, 和 <description> 元素</a> <a href="co-8966.html" >下一篇:RSS <generator> 元素 </a> </div> </div> <!-- 右侧列表 --><!--#include virtual="/static/right.shtml"--><!-- 底部 --> <!-- 底部 --> <footer class="relative b-large-margin"><!--#include virtual="/static/foot.shtml"--></footer> <div class="xf-window"> <div class="xf-wxewm" id="showQrcode"> <i class="fa fa-qrcode icon icon-qrcode "></i> <div class="xf-qrcode" id="wxQrcode"> <p>用微信扫一扫</p> <img src="/static/202010/img/gzh_wechat.jpg" width="150"> </div> </div> <a class="fa fa-star xf-collection"> 收藏 </a> <div class="fa fa-qq xf-share " id="showQqlist"> <div class="xf-qrcode xf-qq-link " id="qqWindow" style="display: none"> <p class="xf-qq-link-tit">CPU中文网交流群</p> <p><span>QQ群:</span></p> <a target="_blank" href="">点击加入群</a> <p><span>QQ客服:</span> </p> <p>(工作日: 9:00-18:00)</p> <a target="_blank" href="https://wpa.qq.com/msgrd?v=3&uin=&site=qq&menu=yes">点击联系客服</a> </div> </div> <a href="/feedback.html" class="fa fa-pencil xf-myfeed" target="_blank" id="feedBack"> </a> <div class="xf-totop" id="goTop"> <i class="fa fa-caret-up icon icon-caret-up"></i> </div> </div> <script src="/static/202010/js/lang.js"></script> <script src="/static/202010/js/login.js"></script> <script src="/static/202010/js/footer.js"></script> <style> .popup-link-info-box { position: absolute; right: 58px; top: 0; background-color: #fff; -webkit-box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1); box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1); padding: 15px; display: none; } .popup-link-info-box li { float: left; margin-right: 10px; border: 1px solid #eee; text-align: center; line-height: 50px; } .popup-link-info-box li p { font-size: 14px; color: #333; } .popup-link-info-box li p span { font-size: 14px; color: #333; } .popup-link-info-box li .popup-wechat-wrapper {} .popup-link-info-box li .popup-wechat-wrapper img { height: 100%; width: 100%; object-fit: cover; } </style> <script type="text/javascript" src="/static/kj/js/jquery.js"></script> <script type="text/javascript" src="/static/kj/js/home-1589270335000-bundle.js"></script> <script type="text/javascript" src="/static/202010/js/jquery.cookie.js"></script> <script type="text/javascript" src="/static/kj/js/pre.js"></script> <script src="/static/202010/js/new-common.js"></script> <script> $(function () { //替换为 pre 标签 // $('.example_code').unwrap().wrap('<pre/>'); $('.example_code').find('br').remove() $('.example_code').replaceWith(function(){ return $("<pre />").append($(this).contents()); }); $("pre").addClass("prettyprint");//如果其他地方也要用到pre,我们可以再加一个父标签的选择器来区分 prettyPrint();//代替body上的onload事件加载该方法 $('a.tryitbtn').text('运行代码') //左导航高度 // var centHeight = $('.is-node').outerHeight() - 2 // $('.left-nav-container').height(centHeight) // $('.left-nav-container ul').height(centHeight - 36) // $('.right-nav-con').height(centHeight) }) $('#write').find('hr').remove() </script> </body> </html>