This article mainly talks about some little knowledge about CSS3 with you, I hope it can help you. Let’s take a look with the editor below.
box-shadow adds a shadow to the p element
box-shadow: h-shadow v-shadow blur spread color inset;
h-shadow: required . The position of the horizontal shadow. Negative values allowed
v-shadow: Required. The position of the vertical shadow. Allow negative values
blur: Optional. Fuzzy distance
spread: Optional. The size of the shadow
color is optional. The color of the shadow. Find the full list of color values in CSS Color Values
inset Optional. Change the inner shadow of the shadow from the outer shadow (at the beginning)
2.transform: Rotate p element
Compatibility issue:
-ms-transform:rotate(7deg); / * IE 9 */
-moz-transform:rotate(7deg); /* Firefox */
-webkit-transform:rotate(7deg); /* Safari and Chrome */
-o-transform:rotate(7deg); /* Opera */
3.transition: Please move the mouse pointer to the blue p element to see the transition effect.
<
Please move the mouse pointer to the blue p element to see the transition effect.
!DOCTYPE html> <html> <head> <style> p { width:100px; height:100px; background:blue; transition:width 2s; -moz-transition:width 2s; /* Firefox 4 */ -webkit-transition:width 2s; /* Safari and Chrome */ -o-transition:width 2s; /* Opera */ } p:hover { width:300px; } </style> </head> <body> <p></p>
Note: This example does not work in Internet Explorer.