上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 21 下一页
摘要: .ie6_7_8{ color:blue; /*所有浏览器*/ color:red\9; /*IE8以及以下版本浏览器*/ *color:green; /*IE7及其以下版本浏览器*/ _color:purple; /*IE6浏览器*/ } 阅读全文
posted @ 2016-07-29 13:05 a fine day 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 标记由以下几部分组成,严格按照下列顺序: 一个 "<" 字符. 元素的标记名称. 可选的,一个或多个属性,其中每一个的前面必须有一个或多个空格字符。(class id data href等顺序) 可选的,一个或多个空格字符。 可选的,一个“/”字符,它可以存在且仅当元素是一个空元素时。 一个 ">" 阅读全文
posted @ 2016-07-29 10:32 a fine day 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 是因为有中文的空格 /**HTML**/ div.ani /**css**/ .ani{ width:480px; height:320px; margin:50px auto; overflow: hidden; box-shadow:0 0 5px rgba(0,0,0,1); backgrou 阅读全文
posted @ 2016-07-04 20:25 a fine day 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 有个网友问了个问题,如下的html,为什么每次输出都是5,而不是点击每个p,就alert出对应的1,2,3,4,5。 [html] view plain copy print? <html > <head> <meta http-equiv="Content-Type" content="text/ 阅读全文
posted @ 2016-06-10 15:17 a fine day 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 理解情况: 如不利用setInterval 监听,把赋值在document.onmousemove函数中(moveElement.style.left = ..., moveElement.style.top = ...),任何的mousemove都会对渲染产生影响。 利用setInterval ( 阅读全文
posted @ 2016-06-09 19:10 a fine day 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 1, ie 6,7,不支持 setAttribute("class","lihover"), ie 8+/以及ff,chrome,opera,safiri支持。 2 ie 8+/以及ff,chrome,opera,safiri不支持 setAttribute("classname","lihover 阅读全文
posted @ 2016-06-09 18:10 a fine day 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 五种基本类型除了null、undefined以外都有与之对应的特殊的引用类型——包装类型。当代码被解释执行时,底层会对基本类型做一个类型转换,即将基本类型转换成引用类型,这样就可以调用相应引用类型有权访问到的方法。 例如 str是string(基本类型),本身是没有方法的。 当尝试把基本类型的str 阅读全文
posted @ 2016-06-01 17:51 a fine day 阅读(103) 评论(0) 推荐(0) 编辑
摘要: document.documentElement.clientHeight代替document.body.clientHeight取得页面可视区的高度。因为document.body.clientHeight有时因为页面内容不够,值有问题 阅读全文
posted @ 2016-04-24 16:56 a fine day 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 删除第i个元素 array.splice(i,1) 阅读全文
posted @ 2016-04-22 16:08 a fine day 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 在制作红包效果时,new image显示的图片由于没有设置drawImage的dw,dh,图片没有缩放在画布。是对drawImage没有认识好 context.drawImage(img,x,y) context.drawImage(img,x,y,dw,dy) context.drawImage( 阅读全文
posted @ 2016-04-22 16:02 a fine day 阅读(666) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 21 下一页