Css|web|web Standard
With the influence of friends Dodo and colleagues, start paying attention to web standards. Weeks 6th in accordance with the standard Dearbook several pages, summed up some of the experience as follows, for future reference:
- The advantage of the DIV+CSS structure is that it can be done with a piece of display, which is not only saving code but also more control than table.
- Dodo mentions that there are currently no visual editors that support Web standards. However, Visual Studio.NET to CSS support and provide functionality is good, suitable for my novice. Also, use Web-standard pages, VS. NET also does not add font flags in the middle of the HTML code.
- If you want some text in a line to have special properties, using Span,span does not break the text.
- The main difference between class and ID is that class can be referenced. IDS can be controlled using JavaScript.
- If the site is just a local page change to DIV+CSS structure, in order to maintain compatibility with other pages, you can include a page or table in the Div, but the overall architecture is still needed with div+css to control, donews in the ads used in this way.
- Font,b such a label do not use, at first a bit awkward, familiar with the span of the style does not matter. Write to CSS for frequently used style
- Layout mainly by float property, float property only supports left,right and none, so in the page layout, if it is a three-column structure, you need to use div nesting, but the div nesting is much easier than table nesting. However, it is still not convenient to deal with multiple column forms, so I still use table
- 2 column after the 2 column to be aligned, usually inserted div style= "Clear:both"
Other questions about adaptive heights need to be further studied.