2016年3月11日

NGINX server配置中if的用法

摘要: server的配置以php为例,如下: 1 server{ 2 root /var/webproject/www/mytools-php; 3 index index.html index.php; 4 5 location ~.+?\.php(/|$) { 6 fastcgi_split_path 阅读全文

posted @ 2016-03-11 22:55 走一趟再说 阅读(4420) 评论(0) 推荐(0) 编辑

PHP在ubuntu中编译安装

摘要: 关于怎么获取php源码和解压就不再说了。 编译的参数为: ./configure --prefix=/opt/php --with-bz2 --with-mcrypt --with-mhash --with-openssl --with-pdo-mysql --with-pdo-pgsql --wi 阅读全文

posted @ 2016-03-11 15:14 走一趟再说 阅读(1543) 评论(0) 推荐(0) 编辑

CSS选择器优先级

摘要: 1.类的覆盖顺序和应用的时候引用的顺序没关系,覆盖顺序取决于类定义的顺序 例如: .a{ color:red } .b{ color:green } 由于b晚于a定义,所以b覆盖a,反之则a覆盖b 2.类选择器优先级大于标签选择器; 例如: div{ color:red } .div{ color: 阅读全文

posted @ 2016-03-11 14:32 走一趟再说 阅读(2178) 评论(0) 推荐(0) 编辑

导航