This article mainly for you in detail the CSS basic style links, with a certain reference value, interested in small partners can refer to
I. Four states of CSS links
1.a:link Common, inaccessible links
2.a:visited user has visited the link
3.a:
CSS has a lot of properties, and each property has a lot of values, and there are thousands of combinations. The combination of different attributes can also produce different styles, CSS is really a beautiful style design language. Here's a summary
Border-radius property set the border of the garden corner
Possible values: pixels, percent
Extended extension
HTML code
CSS Code
p { height:200px; width:200px; border:2px solid #a72525; border-radius:10px;}
Results
CSS Code
p {
text-align: center">text-align: center">CSS Precedence and inheritance issues
★css conflict, that is, the priority levelThe CSS itself can be set to apply multiple styles to the same element at the same time, and there may be conflicts between
One, the difference between the inline element and the block-level element
1, the line elements will not occupy the whole line, in a straight line, are the same row, horizontal direction;
Block-level elements occupy a row and are arranged in a
Today the video in the CSS3 complex selector part of the reading, to tidy up the knowledge points learned.
1. Brother Selector: Same position level, can be called sibling element
A, adjacent sibling selector: NextTightly following the "current
1. Compatibility
According to the Canius,transition compatibility as shown:
move the mouse pointer over the blue P element to see the transition effect. Note: This example is not valid in Internet Explorer.
The transition effect does not
1, two columns layout left fixed width right adaptive
Left fixed width Right-side Adaptive
. left_1{float:left; width:200px;}. right_1{margin-left:200px;}
2. Two columns layout left adaptive right width
Left adaptive Right
Flex syntax
Elements that use flex layouts, called Flex container, are referred to as "containers." All of its child elements automatically become container members, known as Flex items (Flex Item), or "project" for short.
The container has two axes
The following CSS advanced tips
left-2 list-paddingleft-2">
left-2 list-paddingleft-2">
Use: Not () apply/deselect border on menu
Add row height to body
Everything is centered vertically
Comma-delimited list
Use negative nth-child
Objective
Because of the localization of HTML language, it is not as simple in the web as in Word, especially when the content style is changeable, the content is wide and variable, to achieve a reasonable center is quite a test of engineer
Today the application of the blog passed, to tell you what I have seen the pure CSS to achieve vertical centering of various methods. Why take it as the first article? Because this is I have just started to contact the front end learned the most
According to Canius (http://caniuse.com/#search =background-size), background-size compatibility is IE9 and the above browsers, as shown in.
Instance code:
background-size compatibility handling
See the interview questions will ask how to use CSS to draw a triangle
It is well known that many graphs can be split into triangles, so that will draw a triangle can draw a lot of interesting shapes
The principle of drawing a triangle is to
This article shares the default location of child tags in CSS parent tags in detail
If you do not set top and left for the B tag. They will have a default value.
Top and left are positioned based on width and height.
>background:#eeefff;padding:10px;">>background:#eeefff;padding:10px;">This is a very good pure CSS3 button animation, this CSS3 button is characterized by a 3D stereoscopic visual effect, and the button is flexible, click the button when it is very
The main pseudo elements in CSS are four: Before/after/first-letter/first-line, in the before/after pseudo-element selector, there is a content property that enables the insertion of the contents of the page.
Insert Plain Text
Content: "Inserted
7 methods for vertical center with pure CSS, 7 methods for vertical center with css
Today, I applied for a blog and told you about the various methods for vertical center of pure css that I have seen. Why is it the first article? This is the most
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