The importance of CSS style naming

Source: Internet
Author: User

The jquery blog thinks that CSS style naming is very important.
In the project, if the team and style are named differently, it will be very difficult for others in the team to think about it.
Common problems include hump, Pascal, and symbolic connections.
1. Hump
With a long history, we have been in touch with otherProgramLanguage. I understand it very well. I don't want to explain it much.
Use CSS to write an information layer. MessageBox {...}
2. Pascal
In fact, it is very similar to the camper, specifically because every word needs to be capitalized.
For example,. MessageBox {...}
3. Symbolic connections
The development speed varies according to shift. Message-box {...}
I personally prefer to use the hump and resist symbolic links. For example, if the use is poor, it will be messy with JavaScript.
Of course, the radish and cabbage have their own love, and the team should be unified. Otherwise, you may have changed the style of your colleagues two days ago. Nima's style is a little big and still not uniform.
If you do not like it, you can use it if you like it. It is suitable for your own good team and better team.

Converting from jquery http://www.jqueryba.com/196.html

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.