<br />I have been working in front-end for several years. I cannot say that I have a thorough understanding of it, but I still have some of my own ideas. Let’s take the homepage of Tudou.com as an example to summarize. In terms of production, I divide a page into four layers: framework, layout, module, list, and data block. 1. Framework <br />The framework of the page is basically: "header", "body", and "footer". However, for some pages such as Tudou.com, due to layout requirements, a "menu" should be added below the "header". ![]() 2. Layout (#ID is used to represent page elements below) I won't talk about #Head and #Foot, please check the source code of the demonstration page for details. Layout refers to dividing the content in #Main into several large blocks. Let’s look at Tudou.com. The typical left-right structure in #Main is represented by #Layout_1 and #Layout_2. As shown ![]() 3. Modules <br />The blocks in layout #Layout_1 and #Layout_2 are modules. As far as I understand, a module must have at least one ID, and a Class should be added to those that need to be reused depending on the page design. Regarding the module ID name, you should give it a meaningful name. Of course, if you are lazy, you can use #Col_1, #Col_2, etc. . . The class names of the modules are .cols_1, .cols_2, etc. . . ![]() The inside of the module is as follows: ![]() Previous Page 1 2 Next Page Read Full Article |
<<: MySQL 8.0 New Features - Introduction to the Use of Management Port
>>: 30 Tips for Writing HTML Code
Table of contents 1. Installation and introductio...
Table of contents 1. Routing Configuration 2. Vue...
When developing a project, you will often encount...
The hyperlink <a> tag represents a link poin...
This article mainly discusses the differences bet...
1. Horizontal center Public code: html: <div c...
Introducing the Geo module of Nginx The geo direc...
To replace a string, we need to use the following...
VirtualBox is a free and open source virtualizati...
Introducing Server-U software Server-U is a very ...
Table of contents 1. Synchronization Principle 2....
1. unlink function For hard links, unlink is used...
This article records the detailed tutorial for in...
ScreenCloud is a great little app you didn’t even...
pt-heartbeat When the database is replicated betw...