- 博客(6)
- 收藏
- 关注
原创 js模拟鼠标自动滑动滑块--dispatchEvent
initMouseEvent参数event.initMouseEvent(type, canBubble, cancelable, view,detail, screenX, screenY, clientX, clientY,ctrlKey, altKey, shiftKey, metaKey,button, relatedTarget);形参type设置事件类型type 的字符串,包含以下几种鼠标事件:click,mousedown,mouseup,mouseover,mousemove
2022-04-13 23:55:13 5119 2
原创 JS获取颜色渐变效果数组
JS获取颜色渐变效果数组function rgbToHex(r,g,b){ var hex = ((r << b) | (g << 8) | b).toString(16) return '#' + new Array(Math.abs(hex.length - 7)).join('0') + hex}//hex to rgbfunction hexToRgb(hex){ var rgb = [] for(var i=1;i<7;i+=2){ rgb.pus
2021-12-24 11:01:58 944
原创 微信小程序修改checkbox、radio样式
单选框 radioradio .wx-radio-input { width: 60rpx; height: 60rpx; border-radius: 20rpx;}/* 选中后的 背景样式 (绿色背景 无边框) */radio .wx-radio-input.wx-radio-input-checked { width: 60rpx; /* 选中后对勾大小 */ height: 6orpx; /* 选中后对勾大小 */ border: none; ba
2020-07-22 14:48:33 482
原创 小程序 轮播图 有间距 选中当前变大
wxml部分<view class="uni-padding-wrap"> <view class="page-section swiper"> <view class="page-section-spacing"> <swiper class="swiper" previous-margin="60rpx" next-margin="60rpx" :autoplay="false" duration="500" circular="tru
2020-07-18 16:08:46 410
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人