摘要: <?php/**file: page.class.php 完美分页类 Page */class Page { private $total; //数据表中总记录数 private $listRows; //每页显示行数 private $limit; //SQL语句使用limit从句,限制获取记录个 阅读全文
posted @ 2017-02-27 12:12 bj_white 阅读(564) 评论(0) 推荐(0) 编辑
摘要: <?php/** file: image.class.php 类名为Image 图像处理类,可以完成对各种类型的图像进行缩放、加图片水印和剪裁的操作。 */class Image { /* 图片保存的路径 */ private $path; /** * 实例图像对象时传递图像的一个路径,默认值是当前 阅读全文
posted @ 2017-02-24 12:28 bj_white 阅读(3363) 评论(0) 推荐(0) 编辑
摘要: <?php /** file: fileupload.class.php 文件上传类FileUpload 本类的实例对象用于处理上传文件,可以上传一个文件,也可同时处理多个文件上传 */ class FileUpload { private $path = "./uploads"; //上传文件保存 阅读全文
posted @ 2017-02-22 17:46 bj_white 阅读(3931) 评论(0) 推荐(0) 编辑
摘要: 一、原子 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 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 之前做项目的时候,用opacity属性,但是这个属性用后,不但背景会半透明,背景上的文字也会变成半透明。 显然用opacity属性实现这个效果是不可取的。 在css3中我们可以用 background-color:rgba(); 来实现,rgb是背景要显示的颜色,a则是背景的透明度,从而实现我们想要 阅读全文
posted @ 2017-02-10 13:04 bj_white 阅读(199) 评论(0) 推荐(0) 编辑
摘要: <!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 阅读(216) 评论(0) 推荐(0) 编辑
摘要: <!-- 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 阅读(368) 评论(0) 推荐(0) 编辑
摘要: <!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 阅读(828) 评论(0) 推荐(0) 编辑

this is a test!