Today we mainly discuss the following CSS3 shadow use method Introduction, the following small series for everyone to bring you to master the CSS3 Shadow tips (small series recommended). Small series feel very good, now share to everyone, also for everyone to make a reference. Follow the small series together to see it.
1. CSS3 's text Shadow-text-shadow
The use of the gradient gradient, transparency Rgba, border fillet box-radius three new properties in CSS3 has been collated in the previous period, which continues to collate the use of Text-shadow for CSS3. It took a little bit of time today to share the application of this new attribute with a friend who has a common interest.
2. Summarize the use and techniques of CSS3 shadow effect
CSS3 can achieve a lot of results, today I will summarize the use of CSS3 to achieve the shadow effect of the methods and techniques:
If you have multiple shadows, separate them with commas, and then stack them down, the first one written on top
If there is a inset, the inner shadow, but note: If you simply add inset to the original shadow, the Shadow is inside the opposite side, not simply flipping the reverse.
3. CSS3 about fillets and shadows, as well as border pictures and in-box subtraction
A value is set to the box's four corners of the horizontal and vertical radii of each corner can be set independently, the order of values is left upper right up to the lower right and lower left clockwise setting can be abbreviated, logic with padding and margin units support pixels, and percentages (referring to the width and height)
You can control the radius individually with a horizontal radius/vertical radius, and each radius can be individually controlled
4. CSS3 fillet, shadow, transparent _html/css_web-itnose
CSS implementation of the round angle, shadow, transparent methods, the traditional methods are more complex, with CSS3 convenient many, although now the browser to CSS3 support is not very good, but in the near future CSS3 will be popular.
5. CSS3 Shadow Box-shadow use and Skills summary
Text-shadow is to add a shadow effect to the text, and Box-shadow to add a perimeter shadow effect to the element block. With the popularization of HTML5 and CSS3, the use of this special effect is becoming more and more common.
The basic syntax is {Box-shadow:[inset] x-offset y-offset Blur-radius Spread-radiuscolor}
Object Selector {box-shadow:[projection mode] x-axis offset y-axis offset shadow blur radius Shadow expansion radius shadow color}
6. Introduction to CSS3 Shadow use method
Standard syntax:
Box-shadow:h-offset v-offset blur spread color [inset], ...
[Offset to right is positive, negative on top left]
A, if there are multiple shadows, separated by commas, and then stacked down, first written on the top
b, if there is inset, it is the inner shadow, but note: If you simply add inset to the original shadow, the Shadow is inside the opposite side, not simply flipping the reverse.
Related questions
Php-ios CSS3 Shadows don't work.
"Recommended"
1. Summarize CSS border to achieve various effects of the method
2. Easy to master CSS3 Shadow, reflection, gradient tips