Css3 box-shadow detailed use of methods, css3box-shadow
Its usage is:
The Code is as follows:
Copy code
box-shadow: x-offset y-offset blur spread color inset;
The preceding six parameters indicate horizontal offset (positive offset to the right, negative offset to the left) and vertical offset (positive offset to the down, negative offs
This time to everyone to bring Box-shadow shadow effect how to use, the use of Box-shadow shadow effect of the attention to what, the following is the actual case, take a look.
We all know that Box-shadow is a h5 new attribute, used to achieve the effect of
Text overflow text-overflow and text shadow text-shadow-small match Blue ideal
* Directory [1] Text overflow [2] Text shadowPrevious
CSS3 adds some text styles, including text-overflow text overflow and text-shadow text shadow. They have the corresponding overflow attribute and the box-
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 shadow: Box-sha
In the Web page design process, we often need to set some special effects on the Web page, so that the design of the page looks more beautiful, this article will give you how to set the border by CSS shadow effect, CSS shadow effect may let the design out of the box more stereoscopic, say not much, Let's take a look at the setting method of the CSS border shadow
CSS3 set Text shadow effect on text font set shadow effect Text-shadow style, music relaxation chair originally in CSS2 version also has this attribute, but in CSS3 text shadow Text-shadow again be applied, Rich text typesetting layout beautification effect.First, CSS3 words
The use of CSS3 's text shadow Text-shadow is to add a shadow effect to the seat, such as a label added to H1 and so on.Today we go on to explore the use of another attribute Text-shadow in CSS3. CSS3 's Text-shadow is somewhat similar to Text-
edge (when the adjacent corner radius is 0 o'clock).Shadow Box-shadow compatible to IE9.width:100px; height:100px; box-shadow:10px 20px 30px 40px red;The first parameter is the right offset, the second parameter represents the downward offset, the third represents the radius of the solid part, and the fourth represents the radius of the blur part (this value can
Box-shadow IntroductionCSS3 can easily add a shadow effect to an element using the Box-shadow property, Box-shadow can set multiple sets of effects, each set of parameter values separated by commas.Grammar:box-shadow:x-shadow y-shadow
[Note: Transfer from Web Front-end development]
The box-shadow (Shadow) in css3 can be viewed as: Shadow
Simulate box-shadow (Shadow) in css3 in IE and use the shadow (Shadow) filte
Shadow of irregular images (such as dialog box) and graphic shadow dialog box
In daily development, a pop-up dialog box with arrows is used. Sometimes, a shadow is added for the sake of appearance or highlight. Because the image is irregular and may be spliced by multiple elements, the box-shadow attribute may not meet
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
Application Tip one: Offset and ligatures
We can use the Box-shadow offset effect to write the moving End navigation button "Three staves", the following figure:
We are using the Box-shadow and ligatures! What is ligatures? Is that we can write multiple Box-shadow and use "," for segmentation. Achieve a different effect!
The three-bar code is written as follow
An explanation from W3cschoolGrammar:Box-shadow:h-shadow v-shadow blur spread color inset;Note: Box-shadow adds one or more shadows to the box. This property is a comma-delimited list of shadows, each of which is specified by a 2-4-length value, an optional color value, and an optional inset keyword. The value of the omitted length is 0.
value
Shadow Box-shadow (ii)1. The difference between shadow blur radius and shadow expansion radiusShadow Blur radius: This parameter is optional, its value can only be positive, if its value is 0 o'clock, indicates that the shadow does not have a blur effect, the greater the val
Role 1:Create a shadow boxThe Last Shadow eye can be merged into the last shadow box. The Last Shadow box can be used to retrieve objects regardless of distance. For example, if the last shadow box is placed in A, the last shadow
CSS3 Text Shadow Property Text-shadow a few instructions:
CSS2 has already had text-shadow this attribute, but css2.1 deleted this attribute again, CSS3 again use this attribute;
Text-shadow: Shadow horizontal offset value (positive or negative value);
Box-shadow:
H-shadow V-shadow Blur spread color inset;Note the order of the parameters do not write, try to standard, avoid unnecessary bugsMultiple shadows, separated by commas
The third parameter (blur distance) and the fourth parameter (shadow size) can you figure out the difference between the two?So,
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.