This article mainly introduces the CSS3 Box-shadow Shadow (outer Shadow and outer glow), through the five Tests through the picture to show the different positions of the shadow different effects, the need for friends can refer to the next
Basic notes:
Outer
Syntax : Filter:progid:DXImageTransform.Microsoft.Shadow (color= ' color value ', direction= shadow Angle (value), strength= shadow radius (numeric) );Note : The filter must be used with the background property, otherwise the filter will fail.Box-shadow (shadow) code in analog CSS3 under IE:[CSS]View PlainCopy
.
Basic notes:
outer shadow:box-shadow:x axis y-axis Rpx color;
Property Descriptions (in order): Shadow's X-axis (negative values can be used) Shadow's y-axis (negative values can be used) shadow blur value (size) Shade color
inner Shadow:box-shadow:x axis y-axis Rpx color inset;
The default is an outer shadow inner shadow: Inset can be set to an inner
1. Download IE-CSS3.HTC2.CSSbox { -moz-border-radius:15px;/* Firefox * /-webkit-border-radius:15px;/* Safari and Chrome */ Border-radiu s:15px; /* Opera 10.5+, as well as using IE-CSS3 's IE browser */ -moz-box-shadow:10px 10px 20px #000;/* Firefox */ -webkit-box-shadow
ArticleFromWww.css3s.cn
The background and border modules of css3.0 Add a cool attribute box-shadow. Obviously, the name can be used to guess the shadow effect. Currently, it can only be supported by the safari3 browser. After reading the example below, we can see what is going on.
Example 1:
Safari 3Users can see 5
[One day to learn a CSS3 attribute] II: box-shadow, css3box-shadow
Today, I am very busy. If I fail to see new things well, record a common CSS3 attribute: box-shadow, which indicates shadow. If border-radius rounded corner is se
radius: This parameter is optional, its value can be positive negative, if the value is positive, then the entire shadow is extended, the inverse value is negative, then zoom out6. Shadow color: This parameter is optional, if you do not set any color, the browser will take the default color, but the browser default co
, originally I wanted to use sass for the loop computation, the result did not succeed. Hope the master can enlighten.Add the CSS3 property Box-shadow use TutorialThe CSS3 Box-shadow property allows us to easily implement a layer shadow effect. Let's take a look at this attr
positive, the shadow at the bottom of the object, and conversely its value is negative, the shadow at the top of the object;shadow Blur radius: This parameter is optional, but its value can only be positive, and if its value is 0 o'clock, indicates that the shadow does not have a blur effect, the greater the value of
, indicates that the shadow does not have a blur effect, the greater the value of the shadow the more blurred the edge;Shadow expansion radius: This parameter is optional, its value can be positive negative, if the value is positive, then the entire shadow expands, the inverse value is negative, then shrinksShadow colo
reduced;
Shadow color: this parameter is optional. If no color is set, the browser uses the default color, but the default color of each browser is inconsistent. We recommend that you do not omit this parameter.
I made a few demos to help you see the functions of each parameter: the projection method is inset, and the projection method is outset.
The
Implement cross-browser html5 Form Verification and cross-browser html5 form
Many types of forms are added to html5 forms, and the verification function is also provided. On mobile devices, mobile phones, and other devices, different types of keyboards can be displayed based on different input types, such as the iphone
The CSS3 Box-shadow property allows us to easily implement a layer shadow effect. Let's take a look at this attribute in actual combat.
One. browser Compatibility for Box-shadow properties
Let's look at a
corresponding direction.When there is a inset, the shadow behaves inside the box. The remaining rules are the same.
Shadow offset:X-offset the right direction. Y-offset positive direction for bottom.When Spread-radius is 0 o'clock, setting the offset can still show shadow, and I understand that the
I. Syntax:
Box-Shadow: color | x | Y |Indistinct| Spread | (inset)
Details:
A:Color refers to the shadow color value, which can be defined as #000 or (rgba (0.4, 0)/* Fox, OPERA, chrome */). The latter defines the benefits of controlling the transparency of shadows.
B: xShadow horizontal offset value (positive or negative values are recommended );
C: Y
value of the omitted length is 0.Box-shadow: H-shadow v-shadow blur spread color inset;The offset direction is as follows:1) Single-layer shading{ /**/ -webkit-box-shadow: 3px 3px 5px 6px #ccc; /* */
Basic notes:outer shadow:box-shadow:x axis y-axis Rpx color;Property Descriptions (in order): Shadow's X-axis (negative values can be used) Shadow's y-axis (negative values can be used) shadow blur value (size) Shade colorinner Shadow:box-shadow:x axis y-axis Rpx color inset;The default is an outer shadow inner shadow: Inset can be set to an inner shadowNote (PS)
CSS3 Simple Learning notes for Box-shadow propertiesSyntax format:
Box-shadow:h-shadow v-shadow blur spread color inset;
Value
Describe
H-shadow
Necessary. The position of the
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.