答:使用语法 "/* text */"
CSS中的注释通常用于解释样式规则声明的目的。在编辑样式表时,它将帮助您和其他人了解您试图对样式规则进行的操作。浏览器不显示注释。
CSS注释以开头/*,以结束*/。这是一个例子:
例试试这个代码»
/* This is a single line CSS comment */
/* This is an example of a
CSS multi-line comment */
body {
font-family: Arial, sans-serif;
}
p {
color: #333;
line-height: 1.5;
}
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/html/h61006.shtml