Copy codeThe Code is as follows:
$ (Function (){
$ ("# Open"). click (function (){
OpenDialog (a1); // call it. Simply write the div id.
});
});
Var openDialog = function (o ){
Var dialog = new zzlDialog (o );
Dialog. open ();
}
Var zzlDialog = function (o ){
This. init = function (){
/* Initialize the dialog box */
Var XBox = '\
Shadow pop-up box \
';
$ (Docume
According to Canisue (http://caniuse.com/#search =box-shadow), Box-shadow compatibility is as shown:
Test code:
IE8 Browser Effect:
Border-radius in IE8 browser compatibility scenario:
IE8 Browser Effect:
Pie can handle some of the properties of CSS3, such as:
In the provision of user-modified data/password and other functions, often want to give users such experience, do not jump, do not frame the case to complete the operation of these functions.This can be achieved by an effect that shadows the entire current page under the same page and makes the elements in the original page unusable, while allowing a specific modification box to be used to float above the shadowAs an example of the following effect:Th
Make the shadow of this box, the light from the left 45 degrees angle incidence:
Using the previous projective theorem to determine the angle and position of the projection with the auxiliary line:
The completion of the location of the determination, in fact, I now want to determine the relationship between the light distribution of an object, usually directly with the help of 3D software, in the 3D softw
Rounded border:Border-radius A value that represents the circle radius of Four Corners, 4 values are the upper-left corner, the upper-right corner, the lower-left corner, the lower-right corner, the unit can be px and percent, and the percentage is the ratio of the radius relative to the border lengthIn the CSS3 we can finally set the rounded corners quickly, and through this property we can also make the circle, semicircle, four points a circle, ellipse and other graphics.Common fillet Effects:
code blockHTML page:CSS style:This article is from the "Yan" blog, please be sure to keep this source http://suyanzhu.blog.51cto.com/8050189/1883411CSS3 Box-shadow
Principle:
1. Use FileReader to read pictures
2. Use canvas getimagedata to get picture pixel information
3. Convert pixel information to CSS3 Box-shadow
Code:
Author: csdn blog proud Snow star Maple
This is an instance, save the code to run the HTML file try it. Compatible with Firefox, IE6, IE7, IE8, Chrome and so on.
The above is small series for everyone to bring the JS current page login registration box, fixed div, the bottom of the shadow of the example code all content, I hope we support cloud-Habitat Community ~
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.