Common CSS Naming conventions:
Header: Header content: Content/container Tail: Footer navigation: Nav Sidebar: Sidebar
Column: Column page perimeter control overall layout width: wrapper: Left Right Center
Login: Loginbar Logo: Logo ads: Banner page body: main
Hotspot: Hot
News Download: Download sub-navigation: Subnav: Menu
Submenu: submenu: Search Links: Friendlink footer: Footer
Copyright: Copyrights Scrolling: Scroll Contents: Content tab: Tab
Article List: Listing tips: Msg tips: Tips column title: Title
Join: Joinus Guide: Guild Services: Service registration: Regsiter
State: Status vote: Vote partner: Partner
(b) The wording of the note:
/* Footer */
Content Area
/* End Footer */
(c) The name of the ID:
(1) Page structure
Container: Container Header: Header content: Content/container
Page body: Main Page end: Footer Navigation: Nav
Sidebar: Sidebar column: Column page perimeter control overall layout width: Wrapper
Middle: Left Right center
(2) Navigation
Navigation: Nav Main navigation: Mainbav sub-nav: Subnav
Top navigation: Topnav side navigation: Sidebar left navigation: Leftsidebar
Right navigation: Rightsidebar: Menu submenu: Submenu
Title: Title Abstract: summary
(3) function
Logo: Logo ads: Banner login: Login Login: Loginbar
Registration: Regsiter Search: Searching Ribbon: Shop
Title: Title Join: Joinus Status: State button: BTN
Scrolling: Scroll tab: Tab Article list: Listing tip information: Msg
Present: Current Tips: Tips icon: Icon Note: note
Guide: Guild Services: Service hotspot: Hot NEWS: News
Download: Download vote: Vote partner: Partner
Links: Link Copyrights: 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 size, directly using ' font+ font size ' as the name, as
. font12px {font-size:12px;}
. font9pt {font-size:9pt;}
(3) Alignment style, using the English name of the alignment target, such as
. left {float:left;}
. bottom {float:bottom;}
(4) title bar style, using the ' category + function ' way to name, such as
. Barnews {}
. barproduct {}
Precautions::
1. Lowercase;
2. Try to use English;
3. Do not add the middle bar and underline;
4. Try not to abbreviate unless you see the words clearly.
The main MASTER.CSS module MODULE.CSS basic Common Base.css
Layout, layout layout.css theme themes.css column Columns.css
Text font.css form forms.css patch mend.css print print.css
DIV+CSS Naming conventions