如何解决<figure> 的 html ref 定义中的“代码清单”是什么意思?
我正在查看 html 参考页面,他们在其中放置了有关 HTML 标签的所有描述。它说“该标签指定了自包含的内容,如插图、图表、照片、代码列表等。”我不明白什么是代码清单。它实际上意味着该定义中的代码列表吗?
解决方法
这意味着在页面上列出代码
<figure>
<figcaption>Get browser details using <code>navigator</code>.</figcaption>
<pre>
function NavigatorExample() {
var txt;
txt = "Browser CodeName: " + navigator.appCodeName + "; ";
txt+= "Browser Name: " + navigator.appName + "; ";
txt+= "Browser Version: " + navigator.appVersion + "; ";
txt+= "Cookies Enabled: " + navigator.cookieEnabled + "; ";
txt+= "Platform: " + navigator.platform + "; ";
txt+= "User-agent header: " + navigator.userAgent + "; ";
console.log("NavigatorExample",txt);
}
</pre>
</figure>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。