微信小程序实用工具——渐变色按钮(二)

简介: 微信小程序实用工具——渐变色按钮(二)

文章目录


🌻🌻🌻🌼🌼🌼🌺🌺🌺🌼🌼🌼🌻🌻🌻

🏖️开头介绍 👨‍🏫


🎃内容介绍:

👉这次给大家带来六个我见到比较喜欢的按钮样式,接下来我将逐一介绍这六个按钮的样式和代码


📋整体展示:

🌻🌻🌻🌼🌼🌼🌺🌺🌺🌼🌼🌼🌻🌻🌻

1️⃣ 按钮一 ▶️


🎃按钮样式:


📋按钮代码:

<view class="main">
<button class="btn-grad1">按钮一</button>
</view>
.btn-grad1 {
background-image: linear-gradient(to right, #02AAB0 0%, #00CDAC  51%, #02AAB0  100%);
margin: 10px;
padding: 15px 45px;
text-align: center;
text-transform: uppercase;
transition: 0.5s;
background-size: 200% auto;
color: white;            
box-shadow: 0 0 20px #eee;
border-radius: 10px;
display: block;
}
.btn-grad1:hover {
background-position: right center; /* change the direction of the change here */
color: #fff;
text-decoration: none;
}

🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱

2️⃣ 按钮二 ▶️


🎃按钮样式:


📋按钮代码:

<view class="main">
<button class="btn-grad2">按钮二</button>
</view>
.btn-grad2 {
background-image: linear-gradient(to right, #DA22FF 0%, #9733EE  51%, #DA22FF  100%);
margin: 10px;
padding: 15px 45px;
text-align: center;
text-transform: uppercase;
transition: 0.5s;
background-size: 200% auto;
color: white;            
box-shadow: 0 0 20px #eee;
border-radius: 10px;
display: block;
}
.btn-grad2:hover {
background-position: right center; /* change the direction of the change here */
color: #fff;
text-decoration: none;
}

🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱

3️⃣ 按钮三 ▶️


🎃按钮样式:


📋按钮代码:

<view class="main">
<button class="btn-grad3">按钮三</button>
</view>
.btn-grad3 {
background-image: linear-gradient(to right, #3CA55C 0%, #B5AC49  51%, #3CA55C  100%);
margin: 10px;
padding: 15px 45px;
text-align: center;
text-transform: uppercase;
transition: 0.5s;
background-size: 200% auto;
color: white;            
box-shadow: 0 0 20px #eee;
border-radius: 10px;
display: block;
}
.btn-grad3:hover {
background-position: right center; /* change the direction of the change here */
color: #fff;
text-decoration: none;
}

🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱

4️⃣ 按钮四 ▶️


🎃按钮样式:

<view class="main">
<button class="btn-grad4">按钮四</button>
</view>
.btn-grad4 {
background-image: linear-gradient(to right, #E55D87 0%, #5FC3E4  51%, #E55D87  100%);
margin: 10px;
padding: 15px 45px;
text-align: center;
text-transform: uppercase;
transition: 0.5s;
background-size: 200% auto;
color: white;            
box-shadow: 0 0 20px #eee;
border-radius: 10px;
display: block;
}
.btn-grad4:hover {
background-position: right center; /* change the direction of the change here */
color: #fff;
text-decoration: none;
}

🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱

5️⃣ 按钮五 ▶️


🎃按钮样式:


📋按钮代码:

<view class="main">
<button class="btn-grad5">按钮五</button>
</view>
.btn-grad5 {
background-image: linear-gradient(to right, #F09819 0%, #EDDE5D  51%, #F09819  100%);
margin: 10px;
padding: 15px 45px;
text-align: center;
text-transform: uppercase;
transition: 0.5s;
background-size: 200% auto;
color: white;            
box-shadow: 0 0 20px #eee;
border-radius: 10px;
display: block;
}
.btn-grad5:hover {
background-position: right center; /* change the direction of the change here */
color: #fff;
text-decoration: none;
}

🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱

6️⃣ 按钮六 ▶️


🎃按钮样式:


📋按钮代码:

<view class="main">
<button class="btn-grad6">按钮六</button>
</view>
.btn-grad6 {
background-image: linear-gradient(to right, #FF512F 0%, #DD2476  51%, #FF512F  100%);
margin: 10px;
padding: 15px 45px;
text-align: center;
text-transform: uppercase;
transition: 0.5s;
background-size: 200% auto;
color: white;            
box-shadow: 0 0 20px #eee;
border-radius: 10px;
display: block;
}
.btn-grad6:hover {
background-position: right center; /* change the direction of the change here */
color: #fff;
text-decoration: none;
}

🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱

相关文章
|
10月前
|
JSON 安全 定位技术
微信附近人提取v3脚本, 微信附近人id提取技术插件,采集附近人wxid数据工具
本内容介绍微信“附近的人”功能的技术原理与实现方法,基于LBS服务,涉及位置模拟、协议分析及数据解析。通过修改GPS坐标或使用Frida等工具hook位置函数
|
10月前
微信封号脚本插件,全自动批量投诉工具, vx隔空抓包封号思路【仅供学习参考用途】
这是一款针对微信投诉自动化处理的工具插件,通过模拟点击操作实现批量投诉功能。相比手动投诉,该插件效率更高、成功率更有保障。
|
人工智能 小程序 IDE
【一步步开发AI运动小程序】九、姿态辅助调试桌面工具的使用
随着AI技术的发展,各大厂商推出的AI运动APP如“乐动力”、“天天跳绳”等,使云上运动会、线上健身等概念大热。本文将指导你如何利用“云智AI运动识别小程序插件”,在微信小程序中实现类似功能,包括工具搭建、服务启动及数据回传等步骤,助力开发者高效开发AI运动小程序。
【一步步开发AI运动小程序】九、姿态辅助调试桌面工具的使用
|
安全 API 开发者
微信开发者工具里面没有企业微信模式
企业微信与普通微信在应用场景和开发体系上存在本质区别,主要体现在身份认证、功能丰富性和开放能力等方面。企业微信开发需使用特定的API和工具,本文介绍了企业微信开发的基本步骤、特点及开发进度安排,帮助开发者更好地理解和应用企业微信的开发环境。
|
小程序 前端开发 JavaScript
在线课堂+工具组件小程序uniapp移动端源码
在线课堂+工具组件小程序uniapp移动端源码
373 0
在线课堂+工具组件小程序uniapp移动端源码
|
人工智能 小程序 Java
【工具】轻松解锁SQLite数据库,一窥微信聊天记录小秘密
本文介绍了一款名为PyWxDump的开源工具,它可以获取微信账户信息、解密SQLite数据库以查看和备份聊天记录。此工具适用于已登录电脑版微信的用户,通过GitHub下载后简单几步即可操作。适合对数据恢复感兴趣的开发者,但请注意合法合规使用并尊重隐私。
3229 2
【工具】轻松解锁SQLite数据库,一窥微信聊天记录小秘密
|
小程序 开发者
微信开发者工具如何集成SVN、同时解决集成SVN无效果的问题
这篇文章介绍了如何在微信开发者工具中集成SVN版本控制系统,并提供了解决集成后无效果问题的方法。
微信开发者工具如何集成SVN、同时解决集成SVN无效果的问题
|
移动开发 小程序 数据可视化
微信小程序可视化开发工具之动态数据
微信小程序可视化开发工具之动态数据
349 4
|
小程序 数据可视化 数据管理
小程序可视化设计工具-支持一键导出小程序,WebApp及后台管理
小程序可视化设计工具-支持一键导出小程序,WebApp及后台管理
333 3