In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces how to write web code efficiently, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article.
This article starts from three aspects, one is the construction of the enterprise website (the education government category is also summarized into the enterprise site), the second is the construction of the small portal site, and the third, I also mention the print advertising design by the way. It's mainly a website.
In fact, the workload of the enterprise site is not large, I believe that many experienced colleagues can report the columns that may be used by the ordinary enterprise station. Here we look at these jobs from a different perspective. Classify them according to the content composition of the page:
One: home page.
The design content here is the highest. Work is also the most complicated. Forget about design for the time being. From ps to html, to the last whole station. Often the home page is the one with the most changes. What I want to emphasize here is that starting from the home page, pay attention to the use of include files.
Two: paging.
How many kinds of pagination are there? In my opinion, it is nothing more than list and view, list page and reading page. List is usually a list of news, or a list of pictures. On the other hand, view needs only one at all!
So, when building an ordinary enterprise site, the above three pages are complete, and the work is basically done with 1Accord 3. There are procedures, as well as content input.
A purely dynamic site. The content input is very simple. But if it is a site with a large number of static pages, such as educational and government sites. Of course, there is also a considerable part of the reason that, from the company's point of view or from the programmer's point of view, pages such as profiles that are updated for a long time are made static. Another case is that the content contains a large number of pictures, special symbols, formulas, tables and so on. Even the most powerful editor is troublesome to edit. It may be more efficient to use dw. It is only here that my experience is really expressed.
First talk about a large number of text input, first define your P, remember to indent 2em, because a lot of people pay attention to this. This must also be noted. I believe we all open qq, a large number of text, whether from word or notepad, directly copy, paste into the qq dialog box and copy again, remove superfluous things, and then go to the code state of dw. Remember, it's code state pasting. At this time, the code state still retains the original paragraph, while the preview is not segmented, at this time, your P, begins to show its power. The beginning < p >, the end < / p >, and the middle paragraph copy "< p > < / p >" and paste it directly. You don't need to press enter or press the ALT+SHIFT+ space!
Say the table, insert the table in the editor, the efficiency is not as high as in DW. OK, then draw the table in DW, and then paste it to the code state of the editor. The effect is good.
When it comes to complex content, there are tables, special symbols, formulas, a lot of text, tables and pictures. and it's quite long. what are we going to do? I recommend a small software called FLASHPAPER, which can convert all the content into a swf file with scroll bar directly in word. In quite a few cases, the volume is even smaller than the html that you edit in dw.
In fact, what I want to say is that code state operation is the most efficient in many cases!
If the content provided to you by the customer is incomplete or incomplete, this situation is not within my consideration. this is preliminary work. If you don't know how to deal with it, please read my first six chapters.
* * describe the dividing line of production and design * *
In fact, many colleagues spend the most time on design. And enterprise sites generally don't have much content. I want you to take a look at the first four chapters of my advanced web design series. It will be of great help to your design. I will not repeat the rest. Just emphasize accumulation again. Only by constantly accumulating can we make continuous progress. In the fourth chapter, about the material, I said:
When you see a certain part of a picture, your head starts to flash, and you find that you can design a set of things completely from that part.
When you receive a task, your head is like a hard drive, automatically packaging content in your machine that is similar to this task or even can be used directly.
When you want to do something, small icons of which fonts and patterns are available on your hard drive automatically pop up in your mind.
When you want to do something, you are on your way, you are riding a bike, and you can immediately think of which website and what material can be used.
When you see a station, you can immediately extend it and open your mouth to tell which station is similar to this structure and which station is similar to this style. no, no, no. no, no, no.
All of these can be done, is design still difficult for you?
Design is actually a process of continuous accumulation.
* specially emphasized dividing line * *
Again, an include file can contain one or more include files. Understanding this sentence will save you a lot of energy when doing those static websites!
* * the fundamental dividing line of website design * *
Thank you for reading this article carefully. I hope the article "how to write web code efficiently" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.