摘要:
1 var txt; 2 if(window.getSelection) 3 { 4 txt = window.getSelection().toString(); 5 } 6 else 7 { 8 txt = document.selection.createRange().text; 9 } 阅读全文
摘要:
1. offsetWidth:width + padding + border clientWidth:width + padding (不包含border) scrollWidth:大小是内容的大小 2. event.ClientX:鼠标相对于客户窗口的横坐标 event.ClientY:鼠标相对 阅读全文