In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.