会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
十三月凉
多试一下,应该是可以的。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
9
下一页
2021年1月19日
thinkPHP5模版页面volist循环offset使用
摘要: 在TP5模版中,用来输出循环数据的volist标签,offset属性只能使用数字常量,不能使用变量。而length可以使用变量。 有这样一个应用场景:当volist循环需要排除前面几个数据的时候,我们通常使用offset来操作。而假设前面要排除的数据是根据当前页面占位符来确定的,而需要排除的数据量就
阅读全文
posted @ 2021-01-19 17:51 十三月凉
阅读(1164)
评论(0)
推荐(0)
2021年1月7日
移动端background-attachment:fixed不兼容处理
摘要: body { background:#000 url('../images/bg.jpg') no-repeat center top; background-size:cover; background-attachment:fixed;} body:before {content:'';posi
阅读全文
posted @ 2021-01-07 16:53 十三月凉
阅读(803)
评论(0)
推荐(0)
2020年12月26日
页面点击出现蓝色背景色
摘要: 全局样式加入 *{-moz-user-select: none; /*火狐*/ -webkit-user-select: none; /*webkit浏览器*/ -ms-user-select: none; /*IE10*/ -khtml-user-select: none; /*早期浏览器*/ u
阅读全文
posted @ 2020-12-26 18:43 十三月凉
阅读(153)
评论(0)
推荐(0)
2020年12月22日
移动端不显示滚动条
摘要: .div::-webkit-scrollbar { display: none!important; width: 0px; height: 0px; }
阅读全文
posted @ 2020-12-22 15:59 十三月凉
阅读(594)
评论(0)
推荐(0)
2020年12月14日
Swiper垂直方向滑动,高度获取不正确的解决方法
摘要: 垂直方向滑动,高度自适应;加载高度获取不正确,导致显示异常。 var ListSwiper = new Swiper('#listText',{ autoHeight:true, observer:true, observeParents:true, direction:'vertical', au
阅读全文
posted @ 2020-12-14 19:41 十三月凉
阅读(2314)
评论(0)
推荐(0)
2020年12月9日
IOS时间转时间戳出现Invalid Date的问题
摘要: 方法一: var endTime = new Date('2018/08/10 11:59:59') alert(endTime.getTime()) 方法二: varendTime = new Date("Jan 1, 1970 00:00:00") console.log(endTime.get
阅读全文
posted @ 2020-12-09 12:36 十三月凉
阅读(697)
评论(0)
推荐(0)
2020年11月12日
PHP小技巧
摘要: 1、手机/电话号码保留前三位和后四位,中间的用*代替 //{:substr_replace($tel, '****',3, 4)} 例如: <?php $tel = '1234567890'; //1.字符串截取法 $new_tel1 = substr($tel, 0, 3).'****'.subs
阅读全文
posted @ 2020-11-12 17:03 十三月凉
阅读(125)
评论(0)
推荐(0)
2020年10月26日
CSS小技巧
摘要: 1、清除图片下方的几像素空白间隙 第一种: img{display:block} 第二种: img{vertical-align:top;} 除了top值,还可以设置为text-top | middle | bottom | text-bottom 2、让文本垂直对齐文本输入框 input{vert
阅读全文
posted @ 2020-10-26 16:10 十三月凉
阅读(106)
评论(0)
推荐(0)
2020年9月29日
JS——is()方法和has()方法
摘要: $(document).click(function(e){ var box = $('.box'); //目标区域 if(!box.is(e.target) && box.has(e.target).length 0){//Mark console.log(其他区域); // 功能代码 } });
阅读全文
posted @ 2020-09-29 16:11 十三月凉
阅读(16990)
评论(0)
推荐(1)
2020年9月22日
JS获取到秒的时间戳
摘要: var time = Date.parse( new Date() ).toString();//获取到毫秒的时间戳,精确到毫秒 time = time.substr(0,10);//精确到秒
阅读全文
posted @ 2020-09-22 17:51 十三月凉
阅读(14260)
评论(0)
推荐(0)
2020年9月16日
获取输入框光标位置及指定位置插入内容
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script> </
阅读全文
posted @ 2020-09-16 18:21 十三月凉
阅读(1451)
评论(0)
推荐(0)
2020年9月2日
修改phpmyadmin中的默认登陆超时时间
摘要: 解决方法如下: 找到 phpMyAdmin / libraries / config.default.php 文件打开, 修改 $cfg['LoginCookieValidity'] = 1440; 将1440修改成更大的值即可。
阅读全文
posted @ 2020-09-02 16:55 十三月凉
阅读(229)
评论(0)
推荐(0)
2020年8月26日
根据select选中的值去操作内容
摘要: <select name="searchfield" id="searchfield" onChange="getfield();"> <option value="time" selected>时间</option> <option value="student">学员</option> <opt
阅读全文
posted @ 2020-08-26 11:47 十三月凉
阅读(402)
评论(0)
推荐(0)
2020年8月20日
去除input和textarea的默认样式
摘要: input,textarea{outline:none;box-shadow:none;appearance:none} textarea{resize:none}
阅读全文
posted @ 2020-08-20 17:44 十三月凉
阅读(639)
评论(0)
推荐(0)
2020年8月14日
去除HTML中input[type="number"]的默认样式
摘要: input[type=number] { -moz-appearance: textfield; } input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -web
阅读全文
posted @ 2020-08-14 12:42 十三月凉
阅读(1014)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
9
下一页
公告
/* 看板娘 */