Yes, there are always a class of attributes to help you easily find shortcuts, but also for you to add trouble, such as the mastermind of this article Display:inline-block. The role of the front end is to present the object as an inline object, but
The Text-align:center attribute is used when the content is centered, but when the inner element is float, the text-align is invalidated.We can only have other ways to achieve the goal of centering
The code is as follows
Copy Code
Different browsers to distinguish CSS hack:
Difference IE6 with FF:Background:orange;*background:blue;
Distinction between IE6 and IE7:Background:green!important;background:blue;
Difference IE7 with FF:Background:orange; *background:green;
The CSS margin properties define the space around the element. You can set the top, right, bottom, and left margins by using a separate property. You can also use the abbreviated outer margin property to change all the outer margins at the same
Two new properties are added to the processing of the text word-wrap and word-break to solve the problem:
{Word-break:break-all;} : The text rules for Asian and non-Asian languages allow line breaks within words and allow any word in non-Asian text
LinkLink is to connect the external CSS with the Web page.
@importThe difference between the import text and link is that it can introduce several other CSS files into a CSS file.
Why use @importMost people who use the @import approach are because
File Upload type form is a form type that lets a lot of front-end developers tangle, because it's a style that can't be defined with CSS alone. Last week's work has a lot of upload pictures of the page, and encountered this problem, so today, my
First look at IE, Firefox, Google Browser under the various font display
IE below:
Under Firefox:
Google under:
From the above figure can be clearly seen under Google CSS settings font size of 12px and below, the display is the same size,
SolutionThe third method is to set the font of the parent element to "0", and then reset the font size on the "inline-block" element. The code is as follows:Copy code Ul {List-style: none outside none;Padding: 10px;Background: green;Text-align:
Using margin or padding is the only way for every advanced CSS learning.The CSS margin attribute defines the space around the element. By using a separate attribute, you can set the upper, right, lower, and left margins, you can also use the
Css style tutorial: text-and-text layout [under the text on the figure]. The title is messy because it doesn't know how to write it, next, let's take a look at the mixed text and mixed text effects and you will know how it works.View the css layout
In fact, CSS is also a powerful tool for separating HTML from data and performance. Stone CSS Oriented Design: COD is very suitable for my taste. It is not easy to get rid of Table Oriented Design. But once it is realized, the system itself achieves
When multiple style sheets are used, the style sheet needs to compete for control of a specific selector. In these cases, there will always be rules for style sheets to gain control. The following features determine the result of a different style
Understanding the pseudo-class of cssA Pseudo-class (Pseudo classes) is a bolt used to specify the status of one or more of its selection characters. They are in the form of selector: pseudo class {property: value;}, which is separated by a
Advantages of Div + CSS website designThe industry is paying more and more attention to the standardized design of DIV + CSS, ranging from major portal websites to countless personal websites. Under the influence of Div + CSS standardization, web
A hot technology, CSS development is indeed somewhat slow. CSS was first proposed in 1994 and first supported by browsers in 1996. CSS has been regarded as the successor of traditional HTML-based web code. CSS uses style sheets to control the font
The following are eight essential tips for CSS design. Good habits may shorten your design cycle. (If you want to learn more, please refer to "CSS essence-101 design skills" by the People's Post and Telecommunications Publishing House.)1. Check
I.Benefits of Using div + css for website layout1: Separation of representation and contentExtract the design part and place it in an independent style file. Only text information is stored in the HTML file.2: Improves the indexing efficiency of
If CSS filters are flexibly applied and combined, we can achieve many unexpected results. This is an example of the effect for your reference.Effect 1:The shadow filter is used for this effect. The code is as follows:Filter: shadow (color = black,
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.