Next, we will discuss more examples.
Linear Regression has a quality and multi-variant effect or optical regression effect.
External shadows (or external shadows) depend onBorder-boxTo calculate the size and displacement, while the inner shadow (or inner light) depends onPadding-boxComputing.
Later, we will see that the sampling method of the example has added the features of the first two segment of shopping malls, provided to some referers that do not officially support the use of zookeeper versions earlier than the standard transfer method, without adding the region of the website, it does not affect the new version of the browser, which is highlighted in pale colors.
In the following example, CSS is applied to each subject.Effect. Why can't I see the expected effect?
-
At least two dimension values are required, indicating the horizontal (x) vertical (y) displacement of the Shadow. The value 0 indicates no displacement (that is Box).
-
-moz-box-shadow:4px 4px rgba(20%,20%,40%,0.5);-webkit-box-shadow:4px 4px rgba(20%,20%,40%,0.5); box-shadow: 4px 4px rgba(20%,20%,40%,0.5);
-
Increase the size by 3rd to indicate the Blur degree of the Shadow ( Blur), Of course, increasing the Blur level will also make the shadow more transparent.
-
-moz-box-shadow:4px 4px 3px rgba(20%,20%,40%,0.5);-webkit-box-shadow:4px 4px 3px rgba(20%,20%,40%,0.5); box-shadow:4px 4px 3px rgba(20%,20%,40%,0.5);
-
The numeric displacement value is used to show shadows in different directions.
-
-moz-box-shadow:-4px -4px 3px rgba(20%,20%,40%,0.5);-webkit-box-shadow:-4px -4px 3px rgba(20%,20%,40%,0.5); box-shadow: -4px -4px 3px rgba(20%,20%,40%,0.5);
-
Add 4th dimension values to indicate the scatter degree of the Shadow ( Spread), You can also visualize the effect of the light.
-
-moz-box-shadow:4px 4px 12px 4px rgba(20%,20%,40%,0.5);-webkit-box-shadow:4px 4px 12px 4px rgba(20%,20%,40%,0.5); box-shadow:4px 4px 12px 4px rgba(20%,20%,40%,0.5);
-
Use metric data SpreadValue, which is similar to a week-long shadow.
-
-moz-box-shadow:4px 4px 12px -2px rgba(20%,20%,40%,0.5);-webkit-box-shadow:4px 4px 12px -2px rgba(20%,20%,40%,0.5); box-shadow:4px 4px 12px -2px rgba(20%,20%,40%,0.5);
-
Add at the beginning or end
insetChanges to inner shadows, which can be concave.
-
-moz-box-shadow:inset 3px 3px 3px rgba(20%,20%,40%,0.5);-webkit-box-shadow:inset 3px 3px 3px rgba(20%,20%,40%,0.5); box-shadow: inset 3px 3px 3px rgba(20%,20%,40%,0.5);
-
Inner Shadow SpreadValue, plus a concave sense of reality.
-
-moz-box-shadow:1px 1px 3px 2px rgba(20%,20%,40%,0.5) inset;-webkit-box-shadow:1px 1px 3px 2px rgba(20%,20%,40%,0.5) inset; box-shadow:1px 1px 3px 2px rgba(20%,20%,40%,0.5) inset ;
-
More realistic and deeper shadows.
-
Multiple screenshots: a group of more than one number, which are separated by commas. Of course, the transparent colors of the Shadow will be blurred.
-
-moz-box-shadow:2px 2px 2px rgba(20%,20%,40%,0.6),4px 4px 6px rgba(20%,20%,40%,0.4),6px 6px 12px rgba(20%,20%,40%,0.4);-webkit-box-shadow:2px 2px 2px rgba(20%,20%,40%,0.6),4px 4px 6px rgba(20%,20%,40%,0.4),6px 6px 12px rgba(20%,20%,40%,0.4); box-shadow: 2px 2px 2px rgba(20%,20%,40%,0.6) , 4px 4px 6px rgba(20%,20%,40%,0.4) , 6px 6px 12px rgba(20%,20%,40%,0.4) ;
-
Images with transparent regions (imgElement) Definitionbox-shadow, Of course, in the wholeimgElementBox(Including transparent regions. In this example, in addition to the animated film and shadow, the foreign element also specifiesinsetThe screenshot shows a more specific picture. The screenshot does not appear in the screenshot method. Please renew it on your own.
-
-moz-box-shadow:2px 2px 2px rgba(20%,20%,40%,0.6),4px 4px 6px rgba(20%,20%,40%,0.4),6px 6px 12px rgba(20%,20%,40%,0.4);-webkit-box-shadow:2px 2px 2px rgba(20%,20%,40%,0.6),4px 4px 6px rgba(20%,20%,40%,0.4),6px 6px 12px rgba(20%,20%,40%,0.4); box-shadow:2px 2px 2px rgba(20%,20%,40%,0.6),4px 4px 6px rgba(20%,20%,40%,0.4),6px 6px 12px rgba(20%,20%,40%,0.4);
-
Different colors are different.
-
Different colors of the shadow, specifying the offset of the intersection, can also show a special sensation. The elements that the shadow spans To the bottom cannot be moved to the typographical layout.
-
-moz-box-shadow:8px 24px 2px rgba(100%,0%,0%,0.4),16px -4px 2px rgba(0%,100%,0%,0.4),24px 12px 2px rgba(0%,0%,100%,0.4);-webkit-box-shadow:8px 24px 2px rgba(100%,0%,0%,0.4),16px -4px 2px rgba(0%,100%,0%,0.4),24px 12px 2px rgba(0%,0%,100%,0.4); box-shadow: 8px 24px 2px rgba(100%,0%,0%,0.4) , 16px -4px 2px rgba(0%,100%,0%,0.4) , 24px 12px 2px rgba(0%,0%,100%,0.4) ;
-
Both the content and the content are shadow, and the same element can be used.
-
-moz-box-shadow:6px 6px 6px rgba(20%,20%,40%,0.5),inset 1px 1px 4px 2px rgba(20%,20%,40%,0.5);-webkit-box-shadow:6px 6px 6px rgba(20%,20%,40%,0.5),inset 1px 1px 4px 2px rgba(20%,20%,40%,0.5); box-shadow: 6px 6px 6px rgba(20%,20%,40%,0.5) , inset 1px 1px 4px 2px rgba(20%,20%,40%,0.5) ;
Please refer to the following link for details about how to scatter and display Creative CommonsPermission granting. Re-mixing is prohibited. Add the original article for reference. CSS, box, shadow, shadow, light shadow, inset, Moz, WebKit