摘要: 事件: onfous : 元素获取焦点时触发事件 onblur : 元素失去焦点时触发事件 方法: obj.focus(); 可指定元素设置焦点 obj.blur(); 取消指定元素的焦点 obj.select(); 选中指定元素里面的文本内容 示例代码: 阅读全文
posted @ 2017-07-29 00:03 前端[色色] 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 窗口尺寸: 可视区的尺寸 document.documentElement.clientWidth document.documentElement.clientHeight 滚动距离 document.documentElement.scrollTop[scrollLeft] //除了谷歌之外的浏 阅读全文
posted @ 2017-07-29 00:01 前端[色色] 阅读(1828) 评论(0) 推荐(0) 编辑