1. To minimize unnecessary elements, you should only use Div when there is no existing element to implement regional segmentation. For example: main navigation list
You do not need to enclose it in the div.
2. Div is used to group block-level elements, and span can be used to group or identify internal elements. The concept should be compromised.
3.www.andybudd.com/bookmarklets/ bookmarklet
4. General selector *{}
5. FORM {15px;}, form # search {width: 30px ;}
6. Add an ID on each site so that you can use your own style to overwrite your style sheet and site scope, also known as CSS signature,
Generally, the format is id = "www-sitename-com". You may want to overwrite your font size or color scheme to read it. Body # www-
Sitename-com {font-size: 200%; Background-color: black; color: White ;}
7.when designing a website, you must first compile the CSS Management General page partition ----basic.css
(Layout.css,typography.css,color.css)
8. In css writing, you must add a comment block, which describes the purpose, creation date, or version number of the style sheet, and
He contacted the Creator:
/*------------------------------------
Basic style sheet (for version 4 browsers)
Version: 1.1
Author: liuliang
Email: liuliang12320005@163.com
Website: kunba.aokhost.com
-------------------------------------*/
Also, tell others about your naming rules and possible bugs.
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/liuliang1232005/archive/2008/04/29/2341747.aspx