- 博客(4)
- 收藏
- 关注
原创 原生js(点击按钮换图)
*{padding:0;border:0;margin:0;} #anniu-l,#anniu-r{width:45px;height:45px;background:green;float:left;margin-top:100px;cursor: pointer;} #tu{width:660px;height:100px;margin:70px 30px;float:left;posit
2014-02-24 14:43:57
1123
原创 用js判断一个字符串中某个字符出现的次数
var nowpic=0 var patt1=new RegExp("t","g"); do { result=patt1.exec("The best things in life are free"); nowpic++ } while (result!=null) document.write(nowpic-1);
2014-02-24 10:11:02
2817
原创 js触碰小图换大图
.datu{width:504px;height:480px;cursor:pointer;} .datu img{width:504px;height:480px;} .xiaotu{width:504px;height:70px;} .xiaotu ul{list-style:none;padding-top:3px;} .xiaotu ul l
2014-02-22 09:51:47
1686
原创 新手报到------自己写出的一些效果,记录自己的成长(导航的二级菜单显示)
#navbar{width:1140px;height:75px;margin:0 auto;}#navbar ul{list-style:none;}#navbar ul li{width:190px;height:70px;background:black;float:left;text-align:center;}#navbar ul li.lan1{border-bottom:
2014-02-22 08:57:08
703
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人