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
In MySQL, create a view on two or more base table...
Table of contents redo log Why do we need to upda...
This article shares the specific code of js to im...
Related system calls for file operations create i...
Table of contents 1. Download MySQL msi version 2...
After the form input box input is set to the disa...
Table of contents Cache function in vue2 Transfor...
A problem that front-end developers often encount...
Several Differences Between MySQL 5.x and MySQL 8...
1. Percentage basis for element width/height/padd...
Table of contents Discover: Application of displa...
Preface As we all know, by default, the MySQL ins...
1. Related concepts 1.1 Jenkins Concepts: Jenkins...
introduction: Slider drag verification is now use...
Project Scenario Add a custom watermark to the en...