摘要: 可以继承的属性主要有:文本相关的属性:font-family,font-weight等;列表相关的属性:list-style-image,list-style-position; 不可以继承的属性主要有:盒子相关的属性:border,margin,padding,height; :子元素相对于父元素 阅读全文
posted @ 2017-01-14 11:58 fireporsche 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1 try、catch、finally语句中,在如果try语句有return语句,则返回的之后当前try中变量此时对应的值,此后对变量做任何的修改,都不影响try中return的返回值 2 如果finally块中有return 语句,则返回try或catch中的返回语句忽略。 3 如果finally 阅读全文
posted @ 2017-01-11 13:10 fireporsche 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 大家在前端Javascript开发中会遇到处理日期时间的问题,经常会拿来一大堆处理函数才能完成一个简单的日期时间显示效果。今天我给大家介绍一个轻量级的Javascript日期处理类库:moment.js,使用它可以轻松解决前端开发中遇到的种种日期时间问题。 查看演示 下载源码 moment.js不依 阅读全文
posted @ 2017-01-09 22:38 fireporsche 阅读(1122) 评论(0) 推荐(0) 编辑
摘要: http://www.360doc.com/content/16/1108/10/17722897_604827790.shtml 阅读全文
posted @ 2017-01-02 18:22 fireporsche 阅读(473) 评论(0) 推荐(0) 编辑
摘要: <!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) 编辑
摘要: 地址:http://blog.csdn.net/lsgqjh/article/details/53454627 http://www.cnblogs.com/hujunzheng/p/6133648.html?utm_source=gold_browser_extension 阅读全文
posted @ 2016-12-29 18:52 fireporsche 阅读(137) 评论(0) 推荐(0) 编辑