mirror of
https://github.com/wu736139669/vczero.github.io.git
synced 2026-08-05 06:23:38 +00:00
add demo
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
/*
|
||||
* Mask: You can use the function in your project,
|
||||
* when don't want the user to pay attention to inside information of DIV.
|
||||
*/
|
||||
|
||||
(function(exports){
|
||||
var Mask = function(id/*target element id*/, otherCssObj /*is a json obj, like css text*/){
|
||||
var mask = document.getElementById(id);
|
||||
@@ -10,8 +7,8 @@
|
||||
this.div = document.createElement('div');
|
||||
|
||||
this.div.style.position = 'absolute';
|
||||
this.div.style.left = mask.offsetLeft + 'px';
|
||||
this.div.style.top = mask.offsetTop + 'px';
|
||||
// this.div.style.left = mask.offsetLeft + 'px';
|
||||
// this.div.style.top = mask.offsetTop + 'px';
|
||||
this.div.style.zIndex = 300;
|
||||
this.div.style.width = width + 'px';
|
||||
this.div.style.height = height + 'px';
|
||||
|
||||
Reference in New Issue
Block a user