css+js实现中性简约数量加减选择步进器效果代码
代码语言:html
所属分类:布局界面
代码描述:css+js实现中性简约数量加减选择步进器效果代码
代码标签: css js 中性 简约 数量 加减 选择 步进器
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> html, body { margin: 0; padding: 0; } body { font-family: sans-serif; text-align: center; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; } .counter { background-color: rgba(200, 200, 222, 0.1); box-shadow: rgb(204, 219, 232) 3px 3px 6px 0px inset, rgba(255, 255, 255, 0.5) -3px -3px 6px 1px inset; min-height: 75px; min-width: 180px; border-radius: 100px; display: flex; justify-content: space-between; align-items: center; margin: 20px; min-width: 235px; } /* .counter h1 { font-size: 1em; color: rgba(1, 1, 1, 0.33); } */ .counter button { background-color: #fff; border: none; border-radius: 100px; height: 50px; width: 50px; font-size: 1.5em; margin: 10px 20px; color: rgba(1, 1, 1, 0.5); box-shadow: rgb(204, 219, 232) 3px 3px 6px 0px, rgba(255, 255, 255, 0.5) -3px -3px 6px 1px; cursor: pointer; /* .........完整代码请登录后点击上方下载按钮下载查看
网友评论0