[HTML/CSS] Web Slices

Source: Internet
Author: User

Web Slice front-end must grasp the skills, slicing, although it is not difficult to say, simple is really quite simple, I looked at the tutorial, although the inside of the things are not standard, but as a whole understanding is good. For some specifications or the same as the requirements of the team to do it, is not absolute.
10 days Learn Div+css http://www.aa25.cn (at the time of writing articles can not, I Baidu a CHMHTTP://VDISK.WEIBO.COM/S/UIL0TY-GTWFB)
At that time also looked for a slice of, this still can see a little.
From the network, I can not find the source, directly affixed to the
In fact, the standard network production completed the actual work is: PSD to HTML, in general, we will get the art of PSD, at this time different people will have different practices:
1. Turn on fireworks to export the picture cut to HTML.
2. Directly in the Dreamweaver and other tools to drag the layout, import related images, flash resources.
3. After you finish the cut in PS, look at the production step by piece in the text editor.
The above are mostly used methods, but are not good:
The first method is the worst, and the code is not maintainable or readable at all.
The second method is not good, the code will inevitably have redundancy, do something basic need to be checked again.
The third method is not good, because you need to look at a little bit of spelling, that is, when you write HTML tags, you are constantly assuming that this block to show how to.
The correct approach is to:
1. After the PSD, do not do anything else, directly in the text editor to write the framework of the page, do not assume that the future CSS to go how to render, completely natural label, without any CSS.
2. After the completion of the browser after the operation to ensure that the general positioning is no problem.
3. Write the overall CSS, where the CSS is only responsible for the large block positioning and style.
4. Cut out the required picture resources, in a well-written framework of a little to construct, continuous debugging, and ultimately the finished product.
5. Finally, add comments for your own code, and in css,html you need to annotate your code appropriately.
To make the flexibility to switch the skin, so that the CSS leading performance, there are a lot to pay attention to the place, but the general process is this, of course, we can not directly in the beginning to write HTML, but at least to have this consciousness, gradual ...
To add a point, in fact, the above-mentioned author said that it is not necessary (in only 30 minutes to out an activity page, we will not hesitate to use the first type ... Direct Table transduction Bar.
The following main I still around the example of the CHM described above, the basic knowledge of the above please weigh yourself.
The CHM tutorial was developed using DW, and since I interviewed that I used DW for development and was despised, I never used it again. Don't ask me why, you need to discuss life with the interviewer.
Tutorial there is the establishment of the site, in fact, the establishment of folder directory and so on (generally I used to build, and in their own local server environment to develop, to avoid local static pages and online page dislocation, there are some online JS do not execute the problem.
----/html File
----CSS/CSS File
----JS/JS File
---images/picture file
---images/temp/temporary picture file (basically the line is not a lot of products, news map, etc.)
Okay, let's start with the official start.
Generally first put the main frame of the page, as well as CHM


This advantage is mainly to write the inside of the module does not affect the overall structure, and different browsers will not affect the main frame, the basic browser rendering inside the module, the display may be a little bit less, but the main layout will not change. Later internal modification is also more convenient, because does not affect the external. (Of course, I think this is more reasonable, there is a better prospect of proposing
As for what HTML code I will not post, there are PS transduction or FW transduction, these basic software operation.
After the main structure has been written, the internal module is written (for the semantic and structural selection of the label, this is not a detail.)
Additional Information:
Generally only the header nav aside footer article these I tag can add ID control style, for the tutorial in the use of the ID control style is basically forbidden, the basic ID is reserved for JS operation call
Please watch the previous essays on how to write CSS [reprint]css Authoring Guide (Beta) (CSS specification) http://www.cnblogs.com/moki/p/4362961.html
JS related please do not follow the tutorial, written as inline, please external introduction, why to do this, and browser rendering related, this is not here to elaborate.
The CHM tutorial also appeared after some server and other things, in fact, in the server environment to develop, about these please self-understanding, my personal opinion is that the front-end is to understand the back end, before and after the separation of some functional performance methods to choose, all make themselves have to contact these things.
Finally some debugging tools developed, Ietest (ie compatible) firebug (JS debugging)
As for ietest or say, basic still rarely will do to do compatible IE6, IE7 words, ie comes with debug can test, IE6 words virtual machine results accurate, so ietest yourself consider it.

[HTML/CSS] Web Slices

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.