关于如何让 div 上下左右都居中

//方法1 body{ margin:0; padding:0; width:100%; height:100%; } div{ border:1px solid #008EAD;//边框 position:absolute;//绝对定位 top:50%; left:50%; margin-top:-150px;/
阅读全文

css的一些应用(一)

弧度和圆角: border-radius:5px;给边框加阴影:box-shadow: 2px 4px 6px #000; 2px :  表示水平阴影的位置  也可以为 0 4px : 表示垂直阴影的位置   也可以为 0
阅读全文

css X关闭按钮

.x-but{  position: absolute;  border-radius: 12px;  line-height: 20px;  height: 20px;  width: 20px;  font-size:&nbs
阅读全文

php获取路径下文件夹名称 和 文件名称

  • Jsky
  • 2019-03-07 16:47:11
  • PHP
  • PHP
<?php//获取 目录下 所有文件名称public function fileOper($dir){    $images = array();    $entries = glob($dir . '/*');    if(!empty($entries)) foreach($entries as $ent) {
阅读全文

php-原生DB类-mysql

php 原生的 DB类 include:这个里面就是原生的 DB类php-DB类
阅读全文

数组相关的操作-php

  • Jsky
  • 2019-03-07 16:26:21
  • PHP
  • PHP
PHP object 和Array 之间的转换function array2object($array) {    if (is_array($array)) {        $obj = new StdClass();        foreach ($array as $key => $
阅读全文

字符串相关操作-php

  • Jsky
  • 2019-03-07 16:19:09
  • PHP
  • PHP
php 去空格1、去除两边的空格  trim($arr)2、正则匹配去除所有的空格  preg_replace('# #','',$goodid)3. 正则去除 中英文所以空格preg_replace('/(\s|\&nbsp\;| |\xc2\xa0)/','',$data['account_mobile']
阅读全文

time() 和 $_SERVER['REQUSET_TIME'] 的区别

  • Jsky
  • 2019-03-07 16:15:01
  • PHP
  • PHP
sleep(5);//php脚本睡5秒 echo date('Y-m-d H:i:s',time());//获取当前系统时间的时间戳 echo '<hr />'; echo date('Y-m-d H:i:s',$_SERVER['REQUEST_TIME'
阅读全文

php获取今日开始时间和结束时间的方法

  • Jsky
  • 2019-03-07 16:14:04
  • PHP
  • PHP
//php获取今日开始时间戳和结束时间戳 $beginToday=mktime(0,0,0,date('m'),date('d'),date('Y')); $endToday=mktime(0,0,0,date('m'),date('d')+1,date('Y'))-1; //php获取昨日起
阅读全文

时间转时间戳

  • Jsky
  • 2019-03-07 16:13:38
  • PHP
  • PHP
时间戳转时间date("Y-m-d H:i:s",time())date("Y-m-d ", time()),只显示年月日时间转时间戳strtotime():将任何英文文本的日期时间描述解析为时间戳。mktime():从日期取得时间戳strtotime()strtotime() 函数用于将英文文本字符串表示的日期转换为时间戳,为 date
阅读全文

版权所有 © Jsky博客 All Rights Reserved. 工信部备案号:皖ICP备2021014577号-1