In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article is about how to use CSS annotations in the coding process. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
The significance of flexible Annotation in CSS Writing
If you use CSS comments properly, adding comments to your CSS files can be of great help to you and others in the development process. The most common is to add prompts to CSS-style rules, but using CSS annotations can also be helpful in optimizing organizational structure and improving effectiveness.
Tips and labels
This is the most common way to annotate, leaving tips for yourself or other developers to avoid unnecessary confusion and hassle at a later stage. This kind of application simplicity is the most important. For example:
/ * Turnoffbordersforlinkedimages*/ img {border:0;}
Timestamp and signature
Many designers and developers date and time updated CSS files, as well as their names. All these will provide us with some contact information and document updates.
/ * StylesUpdated:Thu4.11.08@17:15p.m.Author:WEBJX.com---*/
This method can be useful for a project, especially if you are part of a group. As a reminder, some organizations require this kind of information in the document, and some companies like to keep the name and date outside the document, so figure it out before you start.
organization
It's a good idea to use CSS comments in CSS documents to indicate different blocks. For example, if all the header information is grouped together, you can use comments to distinguish it from the block style below.
/ * HEADER--*/
I'll elaborate on this further, and now let's talk about how to "separate style types."
Comment mark
If your CSS files are divided according to the blocks I mentioned above, use CSS comment tags in conjunction with the "find" function to enable you to switch between parts of the document. Mark a chapter (Chapter), such as using the equal sign "=", and then add the name of a block, such as "HEADER", to create an "anchor" for your CSS document.
/ * = HEADER--*/ Thank you for your reading! On "how to use CSS comments in the coding process" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.