---Restore content starts---
Box-sizing
Properties allow you to define specific elements that match a region in a specific way.
For example, if you need to place two boxes with borders side-by, you can set box-sizing to "Border-box". This allows
The following small series for everyone to bring a use of CSS pseudo-elements to create a triangle with the implementation of the prompt box. Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a
Basics: Div is centered vertically in another div
Method One:
. Parent { width:800px; height:500px; border:2px solid #000; position:relative;}. Child { width:200px; height:200px;
Recently, to imitate a page, one effect is that the three menu bar is deformed to X effect,
The effect is as follows:
Figure (1) Initial effect
Figure (2) mouse hover effect
Ideas:
three-Horizontal implementation: The traditional can be
Border styles have a full border and a single border style, and you can set different styles for each edge
The following code P1 for the full border style, P2 to set a different style for a single border:
css Border Style This is a
Production principle: In my last essay in detail, due to the method produced by the ball, compared to the performance, only made 3 small balls, the effect can be tested.
in the previous article on how to use the document structure and CSS selector for elements to apply a variety of rich styles, today to have a good chat about CSS cascade and inheritance, first talk about concepts.
Inheritance: The mechanism by
The following small series for everyone to bring a CSS3 filter effect simple example. Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.
The above picture is
method One:Use border to set the border, the element has height and width
.triangle { transform:rotate (45deg); Display:block; width:12px; height:12px; border:1px solid #9e9e9e;
Add to select element: padding-left:20px; But not effective, as shown:
How do I make the settings padding effective on select?
Method One:
To set the property appearance:
Add attribute to select: Appearance:none; -webkit-appearance:none;
We all know that the full name of CSS is called "Cascading style sheets", but it is estimated that many people do not know the meaning of the word "cascade". In fact, "cascade" refers to the overlay of the style, when an element is applied to a
Today this is the integration of the previous CSS complementary knowledge.
I think the previous knowledge about CSS to add a bit messy, today tidy up.
Cascading Style Sheets
What do you mean by cascading? Why the word is so important that it
font-family Setting the font name
Multiple names can be used, separated by commas, and browsers use the available fonts in sequence
P {font-family: ' song Body ', ' blackbody ', ' Arial ';}
Font-size Setting the font size
length specifies the
I first say how to make a triangle, I believe that everyone in the normal time to visit the site will see some of the navigation bar triangle bar, such as:
NetEase homepage of the Head menu bar, there will be such a triangle
When the mouse passes,
Canvas also has the transformation function of the CSS3 transform, the transform of the underlying operation is the use of linear algebra matrix, and the matrix is in our life practice is often used, it can be complex space problems presented, it
Display is used to set how elements are displayed
Display:block | none | inline | Inline-block
Inline: Specifies that the object is an inline element
Block: Specifies that the object is a block element
Inline-block: Specifies that the object is an
There are 3 properties and layouts as well as box creation related to: ' Display ', ' position ' and ' float ', interacting with each other as follows:
If the ' Display ' value is ' none ', then ' position ' and ' float ' have no effect. In this
The horizontal direction of the element floats, meaning that the element can only move left and right without moving up or down.
A floating element moves as far as possible to the left or right until its outer edge touches the bounding rectangle
In a self-setting p or other tab, for a better experience, the mouse will be turned into a gesture during the swipe process.
A simple summary of the CSS corresponding to the style.
In the P, add cursor:pointer.
Example:
gesture
When we do JS animation, often need to do callback processing, such as an animation after the completion of an event, an animation after the completion of another animation and so on, but in the use of CSS3 animation can not capture the state of
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