<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
1. The role of index In general application syste...
Redis uses the apline (Alps) image of Redis versi...
1. ref is copied, the view will be updated If you...
1. Installation environment Docker supports the f...
Given a div with the following background image: ...
Dimensionality reduction of two-dimensional array...
Let me share with you a creative opening realized...
CSS: Copy code The code is as follows: *{margin:0;...
This article shares the specific code of jQuery t...
Copy code The code is as follows: <span style=...
This article shares the second article of using j...
1. Connect Centos7 under VMware and set a fixed I...
Preface When I was browsing Xianyu today, I notic...
Write to the css file Copy code The code is as fol...
Table of contents vue2.x Pre-concept: Routing hoo...