Home >Web Front-end >HTML Tutorial >CSS naming convention_html/css_WEB-ITnose

CSS naming convention_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:39:201107browse

1. Order class, id, name

2. Add dashes to the name letters, make it as short as possible, use the parent class as the prefix, the js- prefix represents the behavior and does not write to the css file class="btn btn-red js-cry"

3. Two spaces to replace the tab character

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn