侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

在css评论中是什么“/ * = SomeText”

2022-12-25 星期日 / 0 评论 / 0 点赞 / 69 阅读 / 1484 字

WordPress样式表注释在注释名称前面有“/ * =”.为什么它不仅仅是/ *为什么它之后有“=”?是否有助于轻松找到评论或是否一无所获?解决方法 即使我强烈建议不要使用w3schools.com

... . . WordPress样式表注释在注释名称前面有“/ * =”.为什么它不仅仅是/ *为什么它之后有“=”?是否有助于轻松找到评论或是否一无所获?.

解决方法

. 即使我强烈建议不要使用w3schools.com,他们也很好地解释了这个问题:

CSS评论

注释用于解释您的代码,并可在以后编辑源代码时为您提供帮助.浏览器会忽略评论.

CSS注释以“/ *”开头,以“* /”结尾,如下所示:

/*This is a comment*/p{text-align:center;/*This is another comment*/color:black;font-family:arial;}

Source

关于=,它可以用于指定注释中用于稍后替换或格式化的点.

更新1

找到关于=符号的this.

.

Adding a marker to a comment block makes it more searchable. This is
called flagged comment block. For example:

06001

In this case,the flag used is the equal sign (=). By using it as a
search string in your editor,you can actually navigate through all
your sections of your CSS file.

However,a simple marker like an equal sign may be inappropriate when
you want to be more specific. In this case,you can add an identifier
to the flag:

06002

Now you can search for =head in your editor. This is called a labeled flagged comment block.

.. . .. ...

广告 广告

评论区