摘要: 无标题文档 本来想着要算一下比例的,可能这个比较特殊不用吧。囧。。。 阅读全文
posted @ 2014-04-10 23:23 半颠者 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1 /*2 *背景的透明度设置3 */4 -moz-opacity: 0.8;5 opacity:.80;6 filter: alpha(opacity=80);待续... 阅读全文
posted @ 2014-04-10 23:06 半颠者 阅读(153) 评论(0) 推荐(0) 编辑
摘要: /* 生成一个串,uniqid(rand());uniqid(prefix,more_entropy)函数基于以微秒计的当前时间,生成一个唯一的 ID。如果 prefix 参数为空,则返回的字符串有 13 个字符串长。如果 more_entropy 参数设置为 true,则是 23 个字符串长。*/取出后6位$salt = substr(uniqid(rand()),-6);$password = md5(md5($password).$salt); 这样生成一个密码 salt会被保存在数据库中 登录的时候会用到验证 阅读全文
posted @ 2014-04-10 17:08 半颠者 阅读(202) 评论(0) 推荐(0) 编辑