摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>choujiang</title> <style type='text/css'> #title{ width: 500px; text-align: center; font-si 阅读全文
posted @ 2016-12-31 20:39 fireporsche 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1、HTML事件处理程序:就是事件直接写在HTML文档中,其特点就是HTML和Js紧密的结合在一起,缺点就是修改不方便,需要改动js和HTML两处。比如: <button onclick="event"></button> <javascript> funciton event(){ alert(" 阅读全文
posted @ 2016-12-31 16:22 fireporsche 阅读(277) 评论(0) 推荐(0) 编辑
摘要: javascript event(事件对象)详解 1. 事件对象 1. 事件对象 Event 对象代表事件的状态,比如事件在其中发生的元素、键盘按键的状态、鼠标的位置、鼠标按钮的状态。 什么时候会产生Event 对象呢? 例如: 当用户单击某个元素的时候,我们给这个元素注册的事件就会触发,该事件的本 阅读全文
posted @ 2016-12-31 15:05 fireporsche 阅读(14136) 评论(0) 推荐(2) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <style > #div{ height: 200px; width: 350px; position: absolute; left:100px; top:10 阅读全文
posted @ 2016-12-31 12:32 fireporsche 阅读(236) 评论(0) 推荐(0) 编辑
摘要: css中关于易混淆的offsetwidth/clientwidth的区别 阅读全文
posted @ 2016-12-31 12:29 fireporsche 阅读(1183) 评论(0) 推荐(0) 编辑