Single-box radio and multiple-marquee checkboxes need landscaping? Of course, the original style of the past century has not met the needs of our customers. form a lot of control needs to beautify, we have the use of JavaScript to do landscaping,
In today's web page production, almost all the beautiful pages are used CSS.
CSS is the abbreviation for cascading style sheet, and some books translate it into cascading style sheets. With the control of CSS, our web page will give people a
IME is the abbreviation for Input Method Editor. It is a specialized application used to enter different characters that represent the written language of the East Asian region.
Using this input method, you can enter the various languages of East
Center layout
demo
1. Center Horizontally
1> Scheme one Inlink-block+text-align
. Child {Display:inlink-block;}
. parent {Text-align:center;}
Pros: Good compatibility
Disadvantage: child element width height cannot be set
2> Solution Two
Now many people use the CSS code is very redundant, in fact, many can simplify the abbreviation.
This time, let's talk about the simplified abbreviation for CSS code as you know it.
1, all CSS code as long as the use of a style tag can be, there
In CSS, the class selector is displayed with a dot number:
. Center {Text-align:center}In the example above, all HTML elements that have the center class are centered.
In the following HTML code, both the H1 and P elements have the center class.
In the internship to do a mobile project, to achieve an animation effect, on the IPhone and Chrome debugging no problem, in the thousand-dollar or so on the Android test problem is very big, the lag is very obvious, baffled its solution, vomiting
CSS align-content attribute, cssalign-contentInstance
Align the items of the element of the elastic box:
Div
{
Display: flex;
Flex-flow: row wrap;
Align-content: space-around;
}
Browser support for copying preview results
The number in the
The pure css3 circle spreads the animation effect from the center to the surrounding area, and the css3 circle spreads the animation
View results:Http://hovertree.com/texiao/css3/37/
Let's take a simple example, for example:
@ Keyframes
Single row and one columnThe following is a reference clip:Body {margin: 0px; padding: 0px; text-align: center ;}# Content {margin-left: auto; margin-right: auto; width: 400px; width: 370px ;}Two rows and one columnThe following is a reference
CSS provides webpage designers with a rich and flexible way to control the expression of page elements. However, you may have noticed that CSS does not provide many optional operations for underlines. In general, the underlines that people see are
Using xhtml + css for webpage layout has many attributes related to operations on background images. Most of the images on many performance factors are processed using the background. All attributes of CSS background can be processed.Body
The selection of pseudo-element adsorption is very similar to that of the pseudo-class, such as selector: pseudo element {property: value ;}. There are four methods.First letters and First linesThe first-letter pseudo element acts on the first
Tip: you can modify some code before running Classic css drop-down menuDrop-down menu-http://www.111cn.netDEMOSDEMOS Zero dollars Wrapping text Styled form Active focus HOVER/CLICK> HOVER/CLICK > Styled form Active focus Hover/click Shadow
Tip: you can modify some code before running Beautiful CSS + DIV navigation menu codeHomeSingle LevelDropdownDroplineFlyoutSupportContact Tip: you can modify some code before running
Tip: you can modify some code before running Css drop-down menu navigation barHomeSingle LevelDropdownDroplineFlyoutSupportContact Tip: you can modify some code before running
If XHTML and CSS are object-oriented .. The sun should have risen from the north. However, everything should look at the problem with the idea of OO, and we can barely pull together. In fact, some people proposed OO-style as early as a few years ago,
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