A good naming habit (which is not just a CSS name, of course). It can not only improve the development efficiency, but also benefit the later revision and maintenance.Assuming that we are currently using a naming method that is idiomatic, and everyone writes like this, then you go to a new team , or someone else takes over your work , you can greatly shorten the
area: ShopCaption: TitleJoin: JoinusState: StatusButton: BTNScrolling: ScrollTabs page: TabArticle List: ListHint Message: MSGPresent: CurrentTip: TipsIcons: IconNote: noteGuide: GuildServices: ServiceHotspot: HotPress: NewsDownload: DownloadVote: VotePARTNER: PartnerLinks: LinkCopyrights: Copyright(d) Name of class:(1) Color: Use the name of the color or the 16 code, as shown in. red {color:red;}. F60 {color: #f60;}. ff8600 {color: #ff8600;}(2) Font
For the writing order of CSS1. Location properties: (e.g. position,top,right,z-index,display,float, etc.)2. Size: (Width,height,padding,margin)3. Text series: Font,line-height, Letter-spacing,color-text-align4. Background: Background,border5. Other: Animation,transitionFor writing Specifications:1. Use CSS abbreviation properties, such as for Padding,margin,font properties2. Remove the 0 in front of the decimal as Font-size:.8em3. Abbreviated name (bu
Note: 1, the name follows the hump-style 2, as far as possible in Chinese 3, do not add the bar and the underscore 4. Try not to abbreviate unless you understand the words in a glanceHeader: Header Logo: Logo links: friendlink content: Content/container ads: Banner footer: Footer Tail: Footer page Body: main Copyright: Copyri Ght Navigation: Nav hotspot: Hot scroll: Scroll sidebar: Sidebar news: Column download: Download tab: tab page perimeter control overall layout width: Wrapper sub-navigatio
As we all know, standard css naming can enhance the readability of style rules, so that you or others can modify the page later. At first, when I wrote css rules, I used Chinese abbreviations to name them. Now it seems very unprofessional, and it also wastes my energy for later maintenance.According to my own writing habits and some online writing methods, I have
Naming has always been a headache for me, especially those that seem to be the same, so I have to think of a way, I summed up the following method, although still in the experiment. Hope to be of help to everyone. We welcome suggestions for improvement. Specific as follows:What to note:First, the name of the selected word should choose not too specific to indicate a certain state (such as color, font size, etc.) of the word, to avoid when the state ch
Reference effective Objective 2.0 item use clear and consistent naming recommendations1. Method Name: Apply the Hump nomenclature, methods name should be able to show how the method is doing, do not worry about the name process, because when used, Xcode will automatically complete-If methods returns a value, the method name should indicate what the value-Do not use abbreviations-For Boolean property, plus is or has prefix-Do not use the Get prefix-The
Common crud method signatures use the following:
Attach get (integer attachid );
Attach save (attach) or integer save (attach );
Void Delete (integer attachid );
Void Update (attach );
The signature of other query methods follows the idea of spring-data-JPA. The name is derived from the open-source JPA framework Hades. The framework author Oliver Gierke was later the leader of the spring-data-JPA project.
When parsing method names, the spring-data-JPA framework first removes the redundant
)
Com.creator.bean
Logical layer
DAO layer
Com.creator.dao
Service Layer
Com.creator.service
Servlet layer
Com.creator.servlet
In the face of the administrator: corresponding to w
[CSS] class and id naming rules, cssclass naming rules
Description: This article is a summary of the high-traffic website CSS development technology. The text is from the book.
Good Book, recommended reading and learning
You can also refer to the blog on the Internet
Origina
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.