how CSS aligns the div layer horizontallyToday, I encountered a very difficult problem with CSS, Div itself does not define its own center attribute,Many methods on the Internet are introduced using superior text-align:center and then nesting a
Basically cascade meaning is "inherit", "Weight", "cover", through good hierarchy naming better implementation effect, less code, more functions, below for the detailed introduction, interested friends don't miss
Solution One:
Cascade refers to
CSS sprites refers to the Web page many small pictures (many icon files) into a regular arrangement of a large picture, in the display of the time through the Background-image, Background-position shows the same effect as a small picture that a
Display:box is the CSS3 new box model attribute, the classic layout application is the vertical height of the layout, split horizontally, proportionally.
Currently Box-flex properties are not fully supported by Firefox, Opera, or Chrome, but they
Download the Animate.css file, the file code a lot, but to understand that it is a lot of special effects of CSS style, if only to use one or two of the effects, you can choose to copy.
The first is the public style:
. animated { -webkit-animation-
CSS3 brings us a very useful new property: Border-image, we can make use of this property to create a background that automatically scales as content increases or decreases. Nonsense not much to say, look at the code!
Html:
第一条列表内容 第二条列表内容
According to Canisue (http://caniuse.com/#search =border-radius), Border-radius compatibility is as shown:
Test code:
IE8 Browser Effect:
Border-radius in IE8 browser compatibility
CSS3 Media
Media type
The media type is a very useful property in CSS2. Media types allow you to specify different styles for different devices.A total of 10 media types are listed, such as tables:
value
Device Type
All
This is a series of additions to the basics of HTML5, and the others are:
First, html5--new structural elements
Ii. html5--figure, time, details, Mark
Third, html5--details ingenious
Iv. changes in existing elements of html5--
Adds a background image to an element of the page, which cannot be displayed when no specific width is specified.
1. Add a background map
HTML code:
We can look at the page effect:
In order to adapt to different
Background usage:
1. Background-color property sets the background color of the element
Possible values
color_name Specifies the color value as the color name of the background color (such as red)
hex_number A background color that specifies a
This is a single-page toggle navigation Menu Interface Design effect made with pure CSS3. In this page effect, a set of navigation buttons is released vertically on the left side of the page, and when you click the navigation button, the
Previous words
Margin is a very special attribute in several properties of a box model. Just a few examples: only margin does not show the current element background, only margin can be set to negative values, margin and width support auto, and
This article implements the CSS text fly-in effect sample code
First, the main layout of the page
about fade-in enterprise introduction Shanghai Shimao Group recruitment Shimao Group, is a real estate development-oriented international
This article for you to share how to use CSS3 to turn the image into a gray model of the effect, the implementation is very simple, the need for friends can reference.
Instance code:
The code is as follows:
http://www.php.cn/;/a > "> http://www.
The basic idea of making a doughnut-shaped progress bar is to draw a basic arc graph, and then we can control its rotation to CSS3 the basic figure in series, create the effect of partial disappearance, and then take you to learn the method of
(a) Commonly used font properties:
Font-weight: Attribute value 100-900 400 equals normal 700 equals bold, the larger the value, the thicker
Font-size: Font size, unit can be PX or%
Font-family: Font Family such as: Microsoft Ya Black
Font-style:
CSS float floating effect in some cases very unstable, the control is not good when the general or clear floating for the better, here we summarize the CSS floating poor content overflow problem and the method of clearing floating
Throw a problem
CSS3 in hover under the several effects code sharing, CSS3 in the mouse after the several effects collection
Effect One: 360° rotation modify rotate (degree of rotation)
* {Transition:all 0.4s ease-in-out;-webkit-transition:all 0.4s
I personally summarize the four positions in css, cssposition
1. positon: static; static location (Default)
All elements in the standard document stream are static positioning
2. positon: relative; relative positioning
Keep away from the standard
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