This article mainly introduces the CSS to solve the display:inline-block, the resulting gap (gap) method, has a certain reference value, it is necessary to understand.
Today in doing H5 horizontal sliding cards used to display:inline-block, but
Positioning of CSS Box model
1. Static Positioning
The default value of the HTML element, that is, no positioning, and the element appears in the normal stream.Statically positioned elements are unaffected by top, bottom, left, and right.
2. Fixed
Rounded Corners: Border-radius
Shadow: Box-shadow
Border Picture: Border-image
Box inside minus: Box-sizing:border-box;
Fillet: Border-radius: pixels/percent
A value is set to the box's four corners of the horizontal and vertical radii of each
CSS Border length control
CSS border length control. I used to nest with P when I needed the border length to be smaller than the container. Later found that the pseudo-class in the implementation of this effect is very convenient, only need a p is
let the coordinates change in two ways:
1. Traditional Top,left Coordinate modification
The Transform property in 2.CSS3
Through the combination of CSS3 animation and transition, the character's walking effect is realized. Generally speaking, the
Used to do custom style radio, checkbox, always the following structure
Text
Then define the Diyradio style as the new radio, and then use JS to do the correlation.
I know today. can use tags for properties +: checked, pure
When working on a mobile page, we sometimes need to make the banner diagram a wide square with the screen to get the best experience, like the Flipbord mobile page:
So how do you use pure CSS to make a square that is adaptive to size?
Scenario
What is sprite diagram?
Sprite is a CSS sprite, some call it CSS Wizard, is a CSS image merging technology, is to combine a number of small icons into a picture, and then use the CSS background-position to display the need to display the part.
Web Authoring WEBJX Article Description: Using the new CSS3 "RGBA" declaration not only allows us to set the RGB color as usual, but also to set its transparency. Using the new CSS3 "RGBA" declaration not only allows us to set the RGB color as usual,
This article mainly introduces the use of CSS3 produced by a mouse button effect, when the mouse on the button, the button will change, produce a dynamic effect, very beautiful. A friend you need can refer to the following
Today to bring you a pure
Here I summed up my usual in the project often used in the 20 CSS commonly used style, are some personal experience, here to share to everyone, I hope to help you
1. Force text line display: White-space:nowrap;
2. Set overflow text to appear as
WebKit unique CSS, you can control the text style inside, with CSS3 animation effect and pseudo-class, we can easily make a drive to draw the input box, in the system login, search and other locations are suitable, interested you can refer to this
Here to recommend 4 new properties of CSS3, very practical, attached examples, the need for friends can be well researched. It's often used to do projects.
CSS3 shortly after the launch, although most of the CSS3 properties are not supported in
Often see such a sharp angle, previously did not understand, thought are made out of pictures, and then surprised to find that many of them are made with CSS, both beautiful and save resources, really the both worlds!
So, how do you do this with
As many small partners know, the landlord recently in the development of mobile-responsive layout of the adaptive page, now share a just finished the small demo
Html:
mobile
Css:
@charset "Utf-8";/* CSS Document
Wrote so long CSS, but most of the front-end er are not in accordance with good CSS writing code to write CSS, this will affect the code reading experience, here summarizes a CSS writing specification, CSS Writing order for everyone to
Maybe we are looking at some of the source of the Web page
will find properties or usages that you have never seen before.I'll summarize it today.Cold knowledge of CSS3
Style calculation
Simple calculations can be done in CSS as wellBy using the
From scratch, I learned how to set up html (15th) css styles.6. Vertical center-single line text with the parent element height determined
1 2 3 4 5 vertical center 6 15 16 17 18 19 20 21 hi, imooc! 22 23 24 Vertical center-single
Basic knowledge, knowledge
Position attribute: Specifies the positioning type of the element. That is, the elements are displayed anywhere on the page.
①Absolute: Absolute positioning; separated from the layout of the Document Stream, the remaining
Scalable page layout
In the previous article, "css implements two columns of layout, one column of fixed width and one column of width adaptive method", mainly about implementing a column of fixed width, adaptive methods for one column width.
Below
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