HTML5   发布时间:2022-04-26  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了HTML5语义线程注释大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
HTML5中的博客上处理线程评论时,您会发现评论主题是嵌套的< article>?或者你会虑甚至嵌套的评论只是另一个< article>在博客文章的范围内和线程是一个显示问题?

示例A:

<section>
<article>
...blog post...
<section id="comments">
<article id="comment_1">...comment 1...</article>
<article id="comment_2">
   ...comment 2...
   <article id="comment_3">...comment 3 in response to comment 2...</article>
   <article id="comment_4">
       ...comment 4 in response to comment 2...
       <article id="comment_4">...comment 5 in response to comment 4...</article>
   </article>
</article>
<article id="comment_6">...comment 6...</article>
</section>
</article>
</section>

示例B(理论rel =“父”):

<section>
<article>
...blog post...
<section id="comments">
<article id="comment_1">...comment 1...</article>
<article id="comment_2">...comment 2...</article>
<article id="comment_3" rel="comment_2" class="indent-1">...comment 3 in response to comment 2...</article>
<article id="comment_4" rel="comment_2" class="indent-1">...comment 4 in response to comment 2...</article>
<article id="comment_5" rel="comment_4" class="indent-2">...comment 5 in response to comment 4...</article>
<article id="comment_6">...comment 6...</article>
</section>
</article>
</section>

编辑:

为了进一步澄清,每个评论都被列为规范建议中的一篇文章,因为它是文章一个小节的一篇文章,因为它的相关性.而线程评论仍然是这个讨论的延伸.

解决方法

然我想要同意Closure Cowboy,因为对我来说,给定文章的所有评论都是在原始文章的上下文中,即使有一些切线可能发生.没有原始文章的意见将不重要.然而,一个朋友给了一个很好的论据,如果次要评论内容能够消除线程注释的重要性:
Original Article: "post some awesome photoshops of my dog!"
Comment 1: (link/image of awesome photoshop response that goes crazy viral)
Comment 2: re comment 1: oh wow,that is amazing photoshop skills!
Comment 3: re comment 1: Fantastic! How do you do that?
Comment 4: re comment 3: See this tutorial I found on that effect.

在这一点上,我们已经不再真正地讨论原文.然有一种关系,但似乎更重要的是通过嵌套元素来代表语义关系.所以我必须和“B”一起去.

大佬总结

以上是大佬教程为你收集整理的HTML5语义线程注释全部内容,希望文章能够帮你解决HTML5语义线程注释所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。