会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
欢迎光临 bj_white
首页
新随笔
联系
订阅
管理
2017年2月27日
一个完美php分页类,推荐给大家
摘要: <?php/**file: page.class.php 完美分页类 Page */class Page { private $total; //数据表中总记录数 private $listRows; //每页显示行数 private $limit; //SQL语句使用limit从句,限制获取记录个
阅读全文
posted @ 2017-02-27 12:12 bj_white
阅读(569)
评论(0)
推荐(0)
2017年2月24日
一个很好用的GD图像处理类image.class.php,推荐给大家
摘要: <?php/** file: image.class.php 类名为Image 图像处理类,可以完成对各种类型的图像进行缩放、加图片水印和剪裁的操作。 */class Image { /* 图片保存的路径 */ private $path; /** * 实例图像对象时传递图像的一个路径,默认值是当前
阅读全文
posted @ 2017-02-24 12:28 bj_white
阅读(3401)
评论(0)
推荐(0)
2017年2月22日
细说PHP文件上传类fileupload.class.php,很好用
摘要: <?php /** file: fileupload.class.php 文件上传类FileUpload 本类的实例对象用于处理上传文件,可以上传一个文件,也可同时处理多个文件上传 */ class FileUpload { private $path = "./uploads"; //上传文件保存
阅读全文
posted @ 2017-02-22 17:46 bj_white
阅读(3973)
评论(0)
推荐(0)
2017年2月10日
正则表达式(php,js,preg)的原子、元字符和模式修正符号
摘要: 一、原子 1、打印字符(a-z A-Z 0-9 !@#$%^&*()_*)和非打印字符 2、所有的数字,所有的字,所有的空白,所有字母,特殊符号 \d:代表任意一个数字 \D:代表任意一个非数字 \w:代表任意一个字 a-z A-Z 0-9 _ \W:代表任意一个非字 除a-z A-Z 0-9 _之
阅读全文
posted @ 2017-02-10 15:09 bj_white
阅读(458)
评论(0)
推荐(0)
CSS实现背景透明,文字不透明,兼容所有浏览器
摘要: 之前做项目的时候,用opacity属性,但是这个属性用后,不但背景会半透明,背景上的文字也会变成半透明。 显然用opacity属性实现这个效果是不可取的。 在css3中我们可以用 background-color:rgba(); 来实现,rgb是背景要显示的颜色,a则是背景的透明度,从而实现我们想要
阅读全文
posted @ 2017-02-10 13:04 bj_white
阅读(201)
评论(0)
推荐(0)
2017年2月9日
用scoll实现的轮播
摘要: <!doctype html><html lang="en"> <head> <meta charset="UTF-8"> <title></title> <style> *{ margin:0; padding:0; border:0; } img{ vertical-align:middle;
阅读全文
posted @ 2017-02-09 11:56 bj_white
阅读(221)
评论(0)
推荐(0)
404,503页面配置代码
摘要: <!-- 404 --><Files ~ "^.(htaccess|htpasswd)$">deny from all</Files>ErrorDocument 404 /404.htmlorder deny,allow <!-- 503 --><Files ~ "^.(htaccess|htpas
阅读全文
posted @ 2017-02-09 11:53 bj_white
阅读(374)
评论(0)
推荐(0)
2017年2月4日
纯CSS3动画:一棵跳舞的树
摘要: <!DOCTYPE html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>纯CSS3动画:一棵跳舞的树</title><style>.trunk, .trunk div { bac
阅读全文
posted @ 2017-02-04 12:00 bj_white
阅读(846)
评论(0)
推荐(0)
公告
this is a test!