- 博客(9)
- 收藏
- 关注
转载 移动端适配小技巧
移动端不同屏幕适配: var g = document.documentElement.clientWidth / 320 ;document.getElementById('eqMobileViewport').setAttribute("content", "width=320, in...
2016-06-16 15:14:00
129
转载 php遍历文件夹并返回某种类型文件list表
//遍历上传文件的html文件,并返回html文件列表 privatefunctionreadDir($dirPath){ $fileList=array(); if(is_dir($dirPath)){ $dir=opendir($dirPath);...
2016-02-29 16:57:00
440
转载 XMLHttpRequest上传文件
;(function(window,document){varmyUpload=function(option){varfile,fd=newFormData(),xhr=newXMLHttp...
2016-02-29 15:35:00
373
转载 html input标签限制上传文件类型
<inputtype='file'accept:'image/*,vide/mp4'> accept支持类型: *.3gpp audio/3gpp, video/3gpp 3GPP Au...
2016-02-24 14:44:00
299
转载 div使用display:inline-block之间的小缝隙
<divclass="fff"><divclass="ddd"></div><divclass="ddd"></div><divclass="ddd"></div>...
2016-02-23 15:16:00
178
转载 css attr
<spandu="元">花费10</span><br><spandu="MB">获得流量1024</span> [du]::after{content:attr(du);color:red;} 效...
2016-02-04 11:18:00
185
转载 css技巧
/*css控制placeholder的样式*/::-webkit-input-placeholder,::-webkit-textarea-placeholder{color:#ccc;}/*css控制移动端滚动条的样式,示例为隐藏滚动条*/::-webkit-scrol...
2016-01-28 11:14:00
79
转载 js md5加密
varhexcase=0;varb64pad="";varchrsz=8;functionhex_md5(s){returnbinl2hex(core_md5(str2binl(s),s.length*chrsz));}function...
2015-12-15 17:06:00
259
转载 header&footer不使用fixed
<body><divclass='top'></div><divclass="main"><br>3<br>3<br>3<br>3<br>3<br&...
2015-12-15 17:03:00
211
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人