1. When setting div top, left must be set together. Otherwise, the object disappears, indicating that the layer postion is set to fixed.
Document. getElementById ("mydiv"). style. top = 10 + "px ";
Document. getElementById ("mydiv"). style. left = 10 + "px ";
This problem is not solved in chrome testing.
2. Obtain the height and width of the part being viewed on the page.
Ie8can only use document.doc umentElement. Height/Width
Chrome can use window. innerHeight/innerEidth or
3. mouse pointer
You can add a url to the custom mouse pointer under IE. cursor: url ("move. cur ");
Add autocursor: url ("move. cur"), auto;
4. Dynamic Output in the javascript Address Bar (when any webpage is opened, enter javascript: void (function () {}) () in the address bar to execute a piece of code)
For example, if you want to output a layer to write document. write directly, nothing will be displayed.
You can only use var obj = document. createElement ("div ");
Obj. style settings