注释符号在样式标签中的用法是什么? [英] What is the usage of comment notations in style tag?
本文介绍了注释符号在样式标签中的用法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如:
<style type="text/css">
<!--
#map{ width:500px;height:500px;float:left }
-->
</style>
<! - - > / code>?
What is the usage of <!-- -->
?
推荐答案
它停止Netscape 2时代的浏览器,不能识别< style>
元素,将内容呈现为文本(因为它们开始呈现内容,但是它是一个注释,因此不会呈现)。
It stops Netscape 2 era browsers, which don't recognize the <style>
element, from rendering the content as text (since they start to render the content, but it is a comment, so it isn't rendered).
这在 HTML规范中有所描述。
今天完全没有价值,但是人们在货币邪恶的心态中继续添加它们。
Entirely worthless today, but people keep adding them without understanding them in a cargo cult mentality.
这篇关于注释符号在样式标签中的用法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文