Intermediary trading http://www.aliyun.com/zixun/aggregation/6858.html"> SEO diagnostic Taobao customer hosting technology hall
CSS is not really hard to learn? In fact, not difficult, but the lack of mastery of experience, hardcore with a book, there is no gain? There! But may not be as effective, as a person I think passive learning you want to remember Is difficult to learn my experience is that we can master the essence (the beginning of important attributes), to be master the essence of these properties are far from enough to meet their own needs cause their desire to know, and automatically extend other related attributes Naturally grasp and deepen the understanding of CSS. This is a way I think (unfortunately, if I learned so many people tell me to take a lot less detours). For the first time to write experience and share, the language organization may be some lack of, but also users are invited, but I believe in more experience in the future, will write better. Here are some of the lessons I've summed up and some conceptual explanations that I deem necessary. Experience sharing Welcome to comment for discussion.
In the current web technology, CSS + DIV has become a mainstream web site standard, we can call him (web standards). CSS is an acronym for the English Cascading Style Sheets, a computer language used to represent document styles such as HTML or XML.
Before we understand and learn CSS, we first need to understand the advantages and conveniences that this computer language has for us. To understand this, I think it is very basic but necessary to help clarify the purpose of CSS + DIV learning. I integrated web site technology and design staff experience, and from the perspective of web applications, CSS + DIV website design advantages and problems are summarized as follows:
First of all, the great advantage of CSS lies in the concise code, which can save a lot of bandwidth for a large website (the real meaning is that the effective keywords are added to the total code of the webpage.) The website made by using the web standard has a search engine Friendly has some advantages; from the art of the program and the webpage, the two can be combined with each other independently to reduce the workload and avoid heavy negative development.
Second, the website made by CSS + DIV makes the website revision relatively simple, many problems only need to change the CSS without the need to change the program, thus reducing the cost of site revision, saving a lot of time. Similar cases have been worked with colleagues in the development office and I believe my colleagues feel more or less comfortable about it.
The last point is feeling badly controlled at the very beginning of the encounter, but rather that the table is better at controlling the position and there is a risk that it may be in conflict with the mood of writing a page layout using DIV. In fact, this is a process of adaptation, we can understand the main points through a lot of practical operation and practice. After that you can feel it is indeed a ever-changing, different layout of a page may have different layout to achieve the wording, but in any case the wording is good, the code is to move toward a principle: that is: the definition of the name as generic as possible Sex, that is, with the least code to define more box mold I call it (a multi-purpose); naming to be normative, combinatorial, to facilitate other designers see the solution. The other one is about using ID or using Class, for which many people may be vague. In fact, the relative, but now I used to write the main class is more, I think this is more convenient and suitable for their own writing habits.
The following is my finishing that you need to first understand and grasp the basic common attributes:
CSS must understand and master the important attributes:
CSS2.0 Chinese Manual See: http://www.kiloso.com/onlinecss/
margin: auto | length Length value consisting of floating-point numbers and unit identifiers | percent. The percentage is based on the height of the parent object. For inline objects, the left and right outer margins can be negative values.
padding: length The length value or percentage of floating-point numbers and unit identifiers. The percentage is based on the width of the parent object.
float: none | left | right This is a float, in the definition of the layout must be used in the property when using it to pay attention to the resulting walk and browser compatibility issues, to understand this property in many practical operations . Have this property to understand the following attributes used in this package "Clear"
both: none Allows floating objects on both sides Not allowed Floating objects; left Does not allow floating objects on the left Right Does not allow floating objects on the right.
background-url (images / aardvark.gif) left top no-repeat | repeat-x | repeat-y Defining the background image to beautify the layout is also a property we often use.
overflow: visible | auto | hidden | scroll This role in the layout I usually use him to prevent and solve browser compatibility problems
border: 1px solid # CCCCC This is the definition of border size, line, color attributes.
list-style-list list-style-list list-stle-type This list of attributes commonly used in the ordered list and unordered list, the list is often used in the definition of page title index text links, which is validated CSS superior to the definition of the form The typical representative.
These are some of the CSS properties that I think you must memorize and understand in learning CSS, and fully understand the features of the portal that greatly enhance the freedom of our application layout. So learning this is not difficult to grasp the above style you will find that before do not know when to start page feel powerless, after the control is very natural according to their own logical thinking can go to achieve their desired layout and layout, and CSS Resistance will ease a lot.
When it comes to this, I want to raise a very common question. I think the WEB standard does not forbid the table to use DIV all the time, including the mistaken idea that I myself had at the beginning. The "standard" is my understanding that standard designers develop a good writing habit and reach a mainstream unity. In some cases the form of the function in the web page or there will be superior when the DIV, and uncontrolled DIV consume too much consume ie cp to increase the burden on the cpu. This is also something we should pay attention to.
Master the above common attributes at the same time, the following reference by network blog written by design (kiloso.com) a CSS three columns layout template, mainly around how to master CSS essentials, learning webpage layout tutorial instance template, users can download the template According to the content of the article carefully pondering, in order to grasp the mastery of technology. The template through the site layout covers the above listed important CSS properties.
Sample Template Preview: http://www.kiloso.com/download/css_template/template020/example.html
Template download address: http://www.kiloso.com/html/csstempate/200810/8541.html
As the layout tutorial example, in the details of the layout did not spend more time fine modification, but I think the layout of the template is good, can understand CSS can be downloaded for more detailed art will be a very good website, the initial learning can Download to modify the attribute parameters to modify the image to grasp the characteristics of the property, in order to achieve a deeper grasp of the purpose of CSS.
Webmaster Tools http://tool.admin5.com