. Set the Margin:0px;margin:auto;12, generally if you do not want content shelf or next to the edge of the Div, you can set the Padding property, but remember to change the original setting width and height, to ensure the original size. The principle is that the content area of an element is the portion defined by width and height, but the background color and image of the element can be displayed in padding.13, in order to prevent the element content of the floating element previously set affec
some decorative images and then turn off some navigation buttons. For more information, see "Print differences.
5. Image replacement skills
Generally, we recommend that you use standard HTML to display text instead of images. This is fast and readable. However, if you want to use some special fonts, you can only use images.
For example, if you want to use the entire selling icon, you can use this image:
This is certainly acceptable, but for search e
This article describes how to write a flexible, stable, and high-quality guide to HTML and css code standards. You can refer to the following for more information.
Golden LawAlways follow the same encoding specification. No matter how many people participate in the same project, make sure that each line of code is written by the same person.
I. Syntax:1. Use two spaces to replace tabs );2. The nested eleme
, you can see the "Print Difference" article.
5. Picture Replacement Technique
It is generally recommended that you use standard HTML to display text instead of using pictures, which is faster and more readable. But if you want to use some special fonts, you can only use pictures.
For example you want to sell the whole thing icon, you use this picture:
That's OK, but for search engines, they're less interested in alt text than normal text becaus
All CSS code in the page needs to be written to the tag.The Type property of the style label should select Text/css, but the type attribute can be omitted.1. CSS Common SelectorThe CSS modifies all the labels on the page and must be selected with the help of a selector.The selector can write many pairs of
then turn off some of the navigation buttons. To learn more, you can look at the "Print differences" article.
5. Photo Replacement Tips
It is generally recommended that you display text in standard HTML instead of using a picture, which is faster and more readable. But if you want to use some special fonts, you can only use pictures.
For example, you want the entire sale of the icon, you use this picture:
Of course, but for search engines, compare
the pronunciation it should use , and help the translation tool determine the rules it should follow when translating . IE compatibility mode http-equiv="x-ua-compatible" content= "Ie=edge"> IE supports the use of specific tags to determine which version of IE should be used to draw the current page. Unless there is a strong special need, it is best to set it to edge mode, which informs IE to use the latest mode it supports. character encoding charset= "utf-8"> by explicitly decl
requests the Wait , the effect is as shown : This example freezes this page and displays a wait box before performing an operation on the current page, before leaving or returning the result of the operation. The function is to prompt the user, the page is loading. In particular, for certain High-volume data requests, the UI can mitigate the annoyance caused by long waits for customers. To make a simple analysis, this example consists of 2 main points. 1 , static elements 2 , when the box appe
In the eyes of many developers, coding HTML is simply very easy, and writing CSS is not only simple and sometimes cumbersome-the same properties have to be kept to keep writing. For this, I have also been confused and encountered a lot of problems, but with the writing reading of the front-end code gradually increased, slowly realized that "can write" and "will write" between still have a certain distance.
model for all labels on the page based only on the font-size of the HTML (one) Line-height(1) Vertical centering for single-line textFormula: The height of the line is equal to the height of the box, so that when the line text is centered vertically, note that only one line of text is applicable.(2) Vertical centering for multiline textThe height of the rows cannot be less than the size of the font, or the upper and lower words will be close tog
How to Write standardized, flexible, stable, and high-quality HTML and css codeGolden Law
Always follow the same encoding specification. No matter how many people participate in the same project, make sure that each line of code is written by the same person.Syntax:
1. use two spaces to replace tabs. 2. the nested element should be indented once (two spaces); 3. for attribute definitions, make sure that all
How to Write standardized, flexible, stable, and high-quality HTML and css code-Golden law with sugar in your pockets
Always follow the same encoding specification. No matter how many people participate in the same project, make sure that each line of code is written by the same person.Syntax:
1. use two spaces to replace tabs. 2. the nested element should be indented once (two spaces); 3. for attribute def
the CSS in 3. Avoid using CSS expressions, the CSS expression is only useful in IE, the number of times he executes will change as the page shrinks, zooms in and scrolls.PS: Think of a related knowledge, solved with an expression.Problem: Remove the dashed box that occurs after clicking the a tag.Workaround: Body a{outline:none;blr:expression
Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time, this site also provides a large number of online instances, through which you can better learn programming... Reply: First of all, there is no restriction between t
I believe that in the near future, in the Chinese market, software development and design and industry will become more mature, in the process of learning we should keep pace with the times, to understand the latest use of various software technologies.
in the PS learning, I am just a simple understanding of how to correctly use PS software, understand the operation of PS software, the image of a deeper level of analysis and use, due to work lim
Forced to quit the Java back-end coding and client programming jobs he is good at, he turned to Web application development. Therefore, some basic knowledge of the Web Front-end, such as HTML basics, CSS, and JS, is a must-have knowledge. You may not need to be proficient in it, but do not need to understand its working principles, the basic form should be clear.
number of solutions, from my point of view are the symptoms do not cure, nowhere near solution. Do not use JS to do the work of CSS, or only for IE to load a specific CSS. So we suggest: wait! The official version of IE7, anything can change before the official version comes out. Second, the great CSS community of cat
This is my 30th day of study in Lawo, unconsciously, there are more than one months, now into our key curriculum, which is the Web front-end of the two great tools, HTML and CSS. So, I want to write a little something, my learning effect and the problems encountered in the record. Cough, I first Play blog this thing, but also hope that we support a lot, do not like to spray.Do not touch the front end of thi
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.