joyo 发布的文章
php计算当前时间距离下个月还有多少天?
当月总天数
echo date('t');计算当前的时间距离下一个月还有多少天
function less_day(){
$month_big = array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
//现在的月份
$date_month_old = (int)date('m',time());
//下个月的月份
$date_month_new = $date_month_old + 1;
//下个月1号的时间戳
$date_time_new = strtotime('1 '.$month_big[$date_month_new-1].' '.date('Y',time()));
//今天的时间戳
$date_time_old = strtotime(date('d',time()).' '.$month_big[$date_month_old-1].' '.date('Y',time()));
//距下月剩余时间
$time_new = ($date_time_new - $date_time_old)/24/60/60-1;
return $time_new;
}
header("Content-type: text/html; charset=utf-8");
echo '今天是:'.date('Y-m-d',time()).'<br/>';
echo '距离下个月还有:'.less_day().'天';
以上内容转载自https://bobjin.com/blog/view/4994c03c126159ba64788a0be6d59d6c.html 尊重原作者的劳动成果
文章防止复制
在body后添加
<body oncontextmenu="return false" ondragstart="return false" onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false" onmouseup="document.selection.empty()" win10工具
手写在线签名html5 canvas

源码如下:
qm.rar
html5在线签章效果

【源代码】
qj.rar
input select 模拟 下拉框
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>案例测试</title>
<link rel="stylesheet" href="css/all.css" />
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<style>
/* 公共样式 */
* { padding: 0; margin: 0; list-style: none; font-size: 14px; }
.hide { display: none; }
input { outline: none; }
/* 模拟下拉框 */
.select { position: relative; margin: 50px 0 0 100px; }
.select .input_in input { width: 188px; height: 20px; line-height: 20px; padding: 10px 0 10px 10px; border: 1px solid #d6d6d6; cursor: pointer; }
.select .city { position: absolute; top: 40px; left: 0; }
.select .city ul { width: 198px; border: 1px solid #d6d6d6; border-top: none; }
.select .city ul li { padding-left: 10px; width: 188px; height: 40px; line-height: 40px; cursor: pointer; }
</style>
</head>
<body>
<!-- End 模拟下拉框 -->
<div class="select">
<div class="input_in">
<input type="text" value="D.C" />
</div>
<div class="city hide">
<ul>
<li>New York1</li>
<li>New York2</li>
<li>New York3</li>
<li>New York4</li>
<li>New York5</li>
<li>New York6</li>
</ul>
</div>
</div>
<!-- End 模拟下拉框 -->
<script type="text/javascript">
$(function(){
//模拟下拉框
$('.select input').on('click',function(){
if($('.select .city').is('.hide')){
$('.select .city').removeClass('hide');
}else{
$('.select .city').addClass('hide');
}
})
$('.select ul li').on('click',function(){
$('.select input').val($(this).html());
$('.select .city').addClass('hide');
$('.select input').css('border-bottom','1px solid $d6d6d6');
})
$('.select ul li').hover(
function(){
$(this).css({'backgroundColor':'#fd9','font-size':'18px'});
},function(){
$(this).css({'backgroundColor':'#fff','font-size':'14px'});
}
)
})
</script>
</body>
</html>