Together to understand how percentage percent values are used in CSS
The percent value is the basis for designing various element sizes and page layouts in CSS, and here we take you through the use of percentage percent values in CSS, including the
I. Background
1, background color with Background-color attribute, for example: body{background-color:red}
2, use the image to do the background with background-image properties, such as BODY{BACKGROUND-IMAGE:UL1 (23.jpg)
3, the background is
This article details CSS Background-attachment property advanced
The premise is to define the Background-image property, and then use Background-attachment to indicate whether the position of the background map is fixed to the viewport or as it
White-space
White-space is used to set the browser to "blank" processing, the so-called Blank refers to the space you entered in the editor, enter, tab and so on. His optional content is as follows:
Normal: Default. The blank will be ignored by
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
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
The following small series for everyone to bring a must-see CSS layout tips to share. 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.
1.max-width:
In order
There is such a WebKit private property:
-webkit-appearance:none; /* Remove input Default style */
When you add the style and the value is ' none ', you can cancel the browser's default style for the control.
This property also has a magical place ~
This article mainly introduces the CSS settings p background color method, the need for friends can refer to the next
The background color is set directly in the P tag.
The code is as follows:
Background is black
Set the background color to
CSS is correct, the link is not wrong, why the CSS style does not take effect
Transitional type: Refers to a type of transition that uses this type of browser to ease the parsing of XHTML, allowing the use of tags in HTML4.01, but must conform
This article to share a piece of CSS3 code to achieve mouse floating magnification picture effect, code without JS and jquery code, very good, with reference value, interested friends refer to the next bar
No need for JS and jquery code to achieve
percent Value of 1.margin the percentage of ordinary elements Maigin is calculated relative to the width of the container element (width).
Here we set a container with a width height of 800 * 600, respectively, outside the picture. Set img{margin:
Every time I see CSS3 animation heart itch want to try, remember one months ago saw the white tree brother of a blog, suddenly enlightened, so he offered the demo tried a bit, feel great! An animated frame design for the demo.
Oneself also want
Reading guidance CSS syntax CSS rules consist of two main parts: selectors, and one or more declarations. selector {declaration1; declaration2; Declarationn} selectors are usually HTML elements that you need to change the style. Each declaration
CSS3 's 3d Start
To play CSS3 3d, you have to understand a few words, that is, perspective ( perspective ), rotation (), rotate and Movement ( translate ). 透视This is a realistic view of the 2D things on the screen, so as to show the effect of 3D.
This article mainly introduces the CSS in the fixed width of the p to achieve vertical centering of the example, that is, in the p internal element relative to the vertical center of the method, the need for friends can refer to the next
Demand
[HTML] comparison between CDN and WPO in front-end performance optimization, cdnwpo
By storing resources closer to users, CDN can shorten the round-trip to servers and speed up page loading to solve performance problems. The WPO solution, such as
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