上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: css选择器有10+种。这里介绍几种常用的和他们的特点1.元素选择器如h1 h2 h3 a p 等一系列标签名2 通配选择器*,匹配所有html的元素3 类选择器class=‘a b'这种选择器在.a.b和.b.a是一样的,不区别先后顺序,另外类选择器区分大小写,class='A'在css中不能用.... 阅读全文
posted @ 2015-06-30 21:27 Debugor 阅读(189) 评论(0) 推荐(0)
摘要: #box { width: 0; height: 0; border-style: solid; border-color: #222222 #3179ad #3c3c3c #ef8318; border-width: 100px 100px 100px 100px;}... 阅读全文
posted @ 2015-06-30 20:35 Debugor 阅读(180) 评论(0) 推荐(0)
摘要: //兼容ie低版本getElementsByClassName的方法if(!document.getElementsByClassName){ document.getElementsByClassName=function(classname){ var children=do... 阅读全文
posted @ 2015-06-29 21:07 Debugor 阅读(140) 评论(0) 推荐(0)
摘要: html==== css=====*{ margin: 0; padding: 0;}li{list-style: none}#banner { ... 阅读全文
posted @ 2015-06-27 15:37 Debugor 阅读(150) 评论(0) 推荐(0)
摘要: html================css=================*{ margin: 0;padding: 0;}#box1{z-index: 1;position: absolute;width: 240px;height: 160px;left: 0px;top: 48px;ba... 阅读全文
posted @ 2015-06-21 20:25 Debugor 阅读(216) 评论(0) 推荐(0)
摘要: html========== 111111 222222 333333 ... 阅读全文
posted @ 2015-06-21 10:57 Debugor 阅读(130) 评论(0) 推荐(0)
摘要: 0% 0%#a{width: 300px;height: 40px;line-height: 40;position: relative;border: 1px solid black;}#b{background: blue;z-index: 2;position: absolute... 阅读全文
posted @ 2015-06-21 09:01 Debugor 阅读(131) 评论(0) 推荐(0)
摘要: html========== css===========#small{width: 200px;height: 200px;margin:110px auto;position: relative;}#pic{position: absolute;left: 0;top: 0;}js====... 阅读全文
posted @ 2015-06-20 15:26 Debugor 阅读(204) 评论(0) 推荐(0)
摘要: ps:img图片放正方形的图片,注意小图和大图html========= css==========*{margin: 0;padding: 0;}#div{width: 350px;height: 350px;margi... 阅读全文
posted @ 2015-06-20 13:24 Debugor 阅读(177) 评论(0) 推荐(0)
摘要: function fade(obj,tar) { obj.timer && clearInterval(obj.timer); obj.timer=setInterval(function () { var cur=parseInt(css(obj,'opacity')*1... 阅读全文
posted @ 2015-06-20 09:10 Debugor 阅读(125) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 下一页