tailwindcss+js实现自定义渐变背景生成器代码
代码语言:html
所属分类:背景
代码描述:tailwindcss+js实现自定义渐变背景生成器代码
代码标签: tailwindc js 自定义 渐变 背景 生成器 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/tailwindcss.3.4.16.js"></script> <script> tailwind.config = { theme: { extend: { boxShadow: { 'elegant': '0px 0px 0px 1px rgba(0,0,0,0.06),0px 1px 1px -0.5px rgba(0,0,0,0.06),0px 3px 3px -1.5px rgba(0,0,0,0.06),0px 6px 6px -3px rgba(0,0,0,0.06),0px 12px 12px -6px rgba(0,0,0,0.06),0px 24px 24px -12px rgba(0,0,0,0.06)' } } } } </script> <style> input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; background: #e5e7eb; border-radius: 4px; outline: none; } input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; background: white; border-radius: 50%; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.1); } input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; background: white; border-radius: 50%; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.1); } </style> <script> document.addEventListener("DOMContentLoaded", () => { .........完整代码请登录后点击上方下载按钮下载查看
网友评论0