2017年2月9日
摘要: 1 var txt; 2 if(window.getSelection) 3 { 4 txt = window.getSelection().toString(); 5 } 6 else 7 { 8 txt = document.selection.createRange().text; 9 } 阅读全文
posted @ 2017-02-09 16:14 飞翔吧菜鸟23 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1. offsetWidth:width + padding + border clientWidth:width + padding (不包含border) scrollWidth:大小是内容的大小 2. event.ClientX:鼠标相对于客户窗口的横坐标 event.ClientY:鼠标相对 阅读全文
posted @ 2017-02-09 11:47 飞翔吧菜鸟23 阅读(187) 评论(0) 推荐(0) 编辑