Core Tip: We are in the divcss layout, very concerned about the learning of CSS skills, today to recommend 3 so-called "top" CSS tips! Although nothing new, but for beginners is very important!
We are in the divcss layout, very concerned about the
Core tip:The ID selector can specify a specific style for HTML elements marked with a specific ID.
ID Selector
The ID selector can specify a specific style for HTML elements marked with a specific ID.
The ID selector is defined with "#".
The
Web page Production WEBJX article introduction: Div+css 6 Steps to build a Web page.
We all know that using div+css layout to design a site to facilitate optimization, easy to be included, such as two sites at the same time online, with
Article Introduction: the class name intersection compound selector using CSS.
First look at the basic definition:
A composite selector is a selector of two or more basic selectors that are connected in different ways, mainly including
Simple introduction of several CSS hidden text methods, I hope to help you.
As a Web front-end developmentFor HTML semanticsIt is often necessary to add some headings to the content module to make the page more meaningfulAnd, of course, our picture
Here are a few practical CSS tips that might help you.
Use Line-height to center vertically
line-height:24px;
If you use a fixed-width container and you want a row to be centered vertically, you can use Line-height (which is the same height as the
("√" represents an identifiable priority, "X" represents an unrecognized)Example: (Ff:white;ie7:greenie6:orange)For FF and IE6 only (IE7):Background:white;*background:orange;For IE7 and IE6 only:Background:green;_background:orange;Or
Compatible with each browser CSS sliding door instance, the code is as follows, can be run to see the effect.
Css+div sliding door effect on the Web page is very common, wide range of applications, can reduce the footprint of the page space, the
css| Display
This method does not use JavaScript, the code is small, simple, the display of the layer automatically at the link
The following code joins the page, the mouse hovers over the link "1234567890", the layer content "11111111" displays,
css| style Sheet
classIn order to define the Web page format more accurately, it is necessary to make the same selectors can be categorized, and can be different categories for different style design. The basic format is as follows:
Selector.
css| Skills | tutorials
method of the whole declaration
1. Basically, there are two ways to declare a whole, the first is to target a label, and then set several styles at a time. The second way is to set the same style for several tags at once.
css| Self Adaptation
To achieve the head foot fixed, the middle area with the content is highly adaptive, drag the scroll bar foot forever bottom.
Solardreamstudios 's plan gave me a very good idea, but the key part is original, always thought that
Css
How to avoid the table because the picture size or too long English characters and deformation, in the CSS add the following code can be prevented, at the same time, English words will also break the word, not by letter this. I would like to say
CSS how to avoid the table because the picture size or too long English characters and deformation of the open, in the CSS to add the following code can be prevented, while the English word will also break the word, not by letter this. I would like
Css
Why should we call it alone?
"Call alone" is to add the style attribute. is to apply the CSS declaration to a single page element (any text, picture, table ...). And so on, are page elements), at this point, CSS will no longer be a style sheet
css| page
method of the whole declaration
1. Basically, there are two ways to declare a whole, the first is to target a label, and then set several styles at a time. The second way is to set the same style for several tags at once. The following
css| button
Most of the time you can see the buttons in Flash can be animated, and most of the HTML button is a single frame switch. In fact, animation is also feasible.Let's take a look at the following preview picture
Mouse move up, mouse click,
css| Solution | adaptive
The problem of adaptive height, using div + CSS for three columns or two column layout, do not know the specific height, can only be based on the content of the increase and decrease adaptive height, to make two columns (or
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