Triangle
When writing CSS, used the background map, ignoring the CSS itself can actually achieve a lot of simple basic graphics, such as triangles:
. triangle { border-style:solid; border-width:20px; Border-color: #000 transparent
The Transform property in CSS allows you to modify the coordinate space of the CSS visual model. With transform, elements can be moved (translate), rotated (rotate), scaled (scale), and skewed (skew).
If the property has a value other than none, a
In general, the center absolute positioning element, left:50%;top:50%, margin negative or through transform can also achieve the effect.
Find another technique today, using, Top,left,right,bottom value 0, then Magin:auto, you can achieve the center.
Many of the other properties of CSS are easy to understand, such as fonts, text, backgrounds, and so on. Some CSS books will also be on these simple attributes of the introduction of a very small, but just ignore some difficult properties to explain,
There are three main ways to use CSS in a page: 1. Add a definition of the Style property value in a row. 2. The page header is called inline. 3. External link call.
There are two types of external references: link and @import.
xml/html Code
xml/
Line-height represents the row height, which is the distance between the two lines of text baselines.
inline box (inline elements)--Anonymous inline boxes (content area/text/inline box), including, in turn, a row box, multiple behaviors more than
People slowly realized that the traditional box model was not straightforward, so they added a new one called
box-sizingThe CSS property.
box-sizing: Box size, box model.
We often encounter the left and right module width of 50%, add a border will
This article will describe some of the most important concepts in CSS, including: Box model, position, float, and so on. These are the basis of CSS and the most commonly used properties, which appear to be independent but mutually reinforcing. In
For a quick page layout, you must have a clear understanding of the elements of the layout so that you do not always make mistakes in the details. This article first detailed the layout of the factors as the basis for the layout: block-level
CSS3 3d Case Summary
Recently into the pit Web animation, so the learning process to record their own share to everyone. I'm going to give you a better one lately.
1. Rotate the puzzle
First look at the effect
The code is mainly composed of HTML
Why do you want to translate this note? Css2 Ben has been translated, but look at, very rough (not to say that their own how Ah, translators are really worthy of admiration!) Recently, more and more contact with CSS and XHTML, but the more contacts,
Ashes level clear float
. clearfix:after { content: "."; Display:block; height:0; Clear:both; Visibility:hidden; Overflow:hidden; *zoom:1; Compatible with IE}
There is a gap problem between inline element connections
Cause:
0x00 min-content Width Adaptive
CSS3 New Width Property value Width:min-content can set the container's width value to the largest non-breaking width in the container (widest word, picture, or box element with a fixed width)
figure{
If the width of a box is zero, then its four border will come together, become solid, and each border is a triangle, we can use the triangle to achieve the sharp chin of the dialogue box.
By setting the border on the left to have color, the lower
A detailed explanation of the usage of user-select in CSS3
The User-select property is a new property of CSS3 that sets whether the user can select text. Can be used for all elements except replacement elements, the following is a description
Before I did not know BFC is what, today to see only know the original before often contact, just do not know the professional name. Like closures, inheritance, often used before, just do not know, today I would like to say, CSS positioning of the
This is perhaps the most commonly used centering method. If you know the size of each element, set a negative margin value equal to half the width of the height (if you do not use the Box-sizing:border-box style, you also need to add a padding value)
I believe everyone in the development of the project has encountered such requirements, a row of X (x>1) blocks and the spacing between adjacent blocks is the same.
This is probably the way it is, and here are some ways to do it.1. Negative
Canvas searchlight effect, canvas searchlight
The clip () method in the canvas is used to cut any shape and size from the original canvas. Once an area is cut, all subsequent drawings are restricted to the area to be cut (other areas on the canvas
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.