- 博客(8)
- 收藏
- 关注
转载 省份2级联动
Document document.getElementById('img').before('美女:');cities = new Object(); cities['台湾']=new Array('台北','台南','其他'); cities['马来西亚']=new Array('Malaysia');
2017-11-24 16:22:10
256
原创 jQuery让div里的东西来回滚动显示
Document body,p { margin :0; padding: 0; }.box { height: 100px; width: 300px; margin-left: 100px; overflow: hidden; borde
2017-11-14 16:01:33
3071
转载 jQuery选项卡切换
Document*{margin:0;padding:0;}#soso_title{float:left;}li{list-style:none;}#soso_title li{width:67px;height:44px;position:relative;}#soso_title li a{display:inli
2017-11-14 15:47:55
958
转载 js返回顶部
var currentPosition,timer; function GoTop(){ timer=setInterval("runToTop()",1); } function runToTop(){ currentPosition=document.documentElement.scrollTop || document.body.scrollTo
2017-11-14 15:46:04
183
转载 原生js实现倒计时
原生js 当前时间 倒计时代码 *{margin:0;padding:0;} body{text-align:center;} .text{margin-top:150px;font-size:14px;} window.onload=function(){ getMy
2017-11-14 15:44:28
582
原创 jQuery无缝轮播
无缝轮播 *{ padding: 0; margin: 0; list-style: none; } .banner{ margin: 100px auto; border: 5px solid #000
2017-11-14 15:40:28
163
转载 手机端长按事件
方法$.fn.longPress = function(fn) { var timeout = undefined; var $this = this; for(var i = 0;i $this[i].addEventListener('touchstart', function(event) { event.prev
2017-11-14 11:01:19
1019
1
转载 原生js轮播
* { margin: 0; padding: 0; text-decoration: none; } body { padding: 20px; } #container {
2017-07-18 09:12:47
189
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人