CSS naming rules header: header Content: content/contain footer Navigation: nav Sidebar: sidebar Column: column The page periphery controls the overall layout width: wrapper Left right center Login bar: loginbar Logo: logo Advertisement: banner Page body: main Hot spot: hot News: news Download: download Sub-navigation: subnav Menu: menu Submenu: submenu Search: search Friend link: friendlink Footer: footer Copyright: copyright Scroll: scroll Content: content Tab: tab Article list: list Prompt message: msg Tips: Column title: title Join: joinus Guide: guild Service: service Registration: regsiter Status: status Voting: vote Partner: partner Naming of id in XHTML file (1) Page structure container: container Header: header Content: content/container Page body: main Footer: footer Navigation: nav Sidebar: sidebar Column: column The page periphery controls the overall layout width: wrapper Left right center (2) Navigation: nav Main navigation: mainbav Sub-navigation: subnav Top navigation: topnav Side navigation: sidebar Left navigation: leftsidebar Right navigation: rightsidebar Menu: menu Submenu: submenu Title: title summary: summary (3) Functional symbol: logo Advertisement: banner Login: login Login bar: loginbar Registration: regsiter Search: search Functional area: shop Title: title Join: joinus Status: status Button: btn Scroll: scroll Tab: tab Article list: list Prompt message: msg current: current Tips: Icon: icon Note: Guide: guild Service: service Hot spot: hot News: news Download: download Voting: vote Partner: partner Friendly links: link Copyright: copyright Class naming in XHTML files (1) Color: Use the color name or hexadecimal code, such as (it is not recommended to name based on appearance) .red { color: red; } .f60 { color: #f60; } .ff8600 { color: #ff8600; } (2) Font size: Use "font+font size" as the name, such as .font12px { font-size: 12px; } .font9pt {font-size: 9pt; } (3) Alignment style, use the English name of the alignment target, such as .left { float:left; } .bottom { float:bottom; } (4) Title bar style, named using the "category + function" method, such as .barnews { } .barproduct { } Other related matters 1. All lowercase; 2. Use English as much as possible; 3. No hyphens or underscores; 4. Try not to abbreviate unless the word is clear at a glance. Main master.css module.css Basic shared base.css Layout, layout layout.css themethemes.css columns.css textfont.css forms.css Patch mend.css Printprint.css |
<<: Solution to CSS anchor positioning being blocked by the top fixed navigation bar
>>: Detailed process of building nfs server using Docker's NFS-Ganesha image
1. Use css sprites. The advantage is that the smal...
Preface Transactional data dictionary and atomic ...
Carousel animation can improve the appearance and...
Configuration Preface Project construction: built...
Index definition: It is a separate database struc...
Performance of union all in MySQL 5.6 Part 1:MySQ...
In the past, float was often used for layout, but...
chmod Command Syntax This is the correct syntax w...
Table of contents background Provide / Inject Ext...
Table of contents 1. Connect to Tencent Cloud Ser...
Table of contents Preface Project Design rear end...
Problem Description Recently, there was a MySQL5....
1. Introduction to MMM: MMM stands for Multi-Mast...
Table of contents 1. CentOS7+MySQL8.0, yum source...
In my last post I talked about how to make a web p...