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

本文推荐了国美毕业展中的一幅版画《突围》,并分享了六个吸引人的按钮样式,包括对应的HTML和CSS代码,展示了创新的界面设计。同时,文章提到了清华社的618IT图书活动,提供5折优惠,并有抽奖赢取编程书籍的机会。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今日推荐💁‍♂️


今年的国美毕业展已经开始了🧑‍🎨🧑‍🎨在杭州的小伙伴可以快速出击了🏃‍♂️🏃‍♂️
这里我想推荐其中的一副版画作品《突围》
在众多版画系作品中被它所吸引
在这里插入图片描述


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

🏖️开头介绍 👨‍🏫


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

📋整体展示:
在这里插入图片描述

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

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;
}
🧱🧱🧱🧱🧱🧱🧱🧱🧱🧱

🍉文末推荐 👨‍🏫


🎃活动介绍:
👉618,清华社 IT BOOK 多得图书活动开始啦!活动时间为 2023 年 6 月 7 日至 6 月 18 日,清华社为您精选多款高分好书,涵盖了 C++、Java、Python、前端、后端、数据库、算法与机器学习等多个 IT 开发领域,适合不同层次的读者。全场 5 折,扫码领券更有优惠哦!快来京东点击链接 IT BOOK 多得(或扫描京东二维码)查看详情吧!

👉点击查看活动详情👈

🍟本期福利:
👉本期为大家带来的是清华社出版的《HTML5+CSS3+JavaScript从入门到精通》

🧀参与形式:
👉关注➕点赞➕收藏➕评论,每人最多评论三条,随机抽取3位小伙伴免费送书一本🍿

🧀抽奖时间:
⏰2023-06-18 18:00
在这里插入图片描述

在这里插入图片描述

评论 27
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

失散多年的哥哥

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值