随笔分类 -  前端

摘要:使用CSS3属性column-count: number|auto;将容器元素分为两列, 使用column-gap: length|normal;设置列之间的间隔, 使用break-inside: avoid使元素避免出现中断点。 设置图片mode='widthFix',即设置图片宽度不变,高度自动 阅读全文
posted @ 2022-08-23 09:29 iRyz 阅读(505) 评论(0) 推荐(0)
摘要:即是把两个日期时间 先转化为时间戳 再进行做差 JS代码: //计算两个时间差 返回天小时分钟 function timediff(begin_time, end_time){ //年月日时分秒转换为时间戳 let beginTime = (new Date(begin_time).getTime( 阅读全文
posted @ 2022-08-22 16:39 iRyz 阅读(1159) 评论(0) 推荐(0)