当前位置:网站首页>给按钮的边框和文字设置不同的背景色
给按钮的边框和文字设置不同的背景色
2022-07-01 00:32:00 【dancria】
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
<style>
#grad1 {
background: linear-gradient(rgba(90,149,254,0.25) 0%, rgba(30,73,197,0.25) 100%);
height: 200px;
border: 20px solid;
border-image: linear-gradient(90deg, #5b96ff 0%, #1943c0 100%) 2 2;
}
.text{
font-size:50px;
background-image: linear-gradient(270deg,#1741bf 0%, #5b96ff 100%);
-webkit-background-clip: text;
color: transparent;
}
</style>
</head>
<body><h3>线性渐变 - 透明度</h3>
<p>为了添加透明度,我们使用 rgba() 函数来定义颜色结点。rgba() 函数中的最后一个参数可以是从 0 到 1 的值,它定义了颜色的透明度:0 表示完全透明,1 表示完全不透明。</p><div id="grad1">
<p class="text"
>点此登录</p>
</div><p><strong>注意:</strong> Internet Explorer 8 及之前的版本不支持渐变。</p>
</body>
</html>

边栏推荐
- Basic knowledge of Embedded Network - introduction of mqtt
- 2022-2028 global capsule shell industry research and trend analysis report
- Fh6908a negative pole turn off synchronous rectification analog low voltage drop diode control IC chip tsot23-6 ultra low power rectifier 1W power consumption < 100ua static replacement mp6908
- Search rotation sort array
- Bugku CTF daily one question dark cloud invitation code
- LVM snapshot: preparation of backup based on LVM snapshot
- [designmode] factory pattern
- Design e-commerce seckill system
- Luogu p1144 shortest circuit count
- 2022-2028 global rampant travel industry research and trend analysis report
猜你喜欢

Confirm() method of window

2022-2028 global retro glass industry research and trend analysis report

Deployment of mini version message queue based on redis6.0

Redis - how to understand publishing and subscribing

2022-2028 global carbon fiber room scraper system industry research and trend analysis report

In depth understanding of jetpack compose kernel: slottable system

2022-2028 global plant peptone industry research and trend analysis report

MySQL variables, stored procedures and functions

20220215 CTF misc buuctf Xiaoming's safe binwalk analysis DD command separate rar file archpr brute force password cracking

ABAQUS 2022 software installation package and installation tutorial
随机推荐
left join左连接匹配数据为NULL时显示指定值
Kubernetes ---- pod configuration container start command
Which is better, server rental or hosting services in the United States?
20220215 misc buctf easycap Wireshark tracks TCP flow hidden key (use of WinHex tool)
Combining online and offline, VR panorama is a good way to transform furniture online!
Is it safe to buy funds on the compass?
leetcode 474. Ones and Zeroes 一和零(中等)
"Experience" my understanding of user growth "new users"
What does it mean to open an account online? Is it safe to open an account online?
CentOS installation starts redis
深度学习的历史
Pytorch auto derivation
[PHP] self developed framework qphp, used by qphp framework
Techo youth 2022 academic year college open class: behind the live broadcast of Lianmai, explore how to apply audio and video technology
2022-2028 global public address fire alarm system industry research and trend analysis report
Fh6908a negative pole turn off synchronous rectification analog low voltage drop diode control IC chip tsot23-6 ultra low power rectifier 1W power consumption < 100ua static replacement mp6908
Rhai - rust's embedded scripting engine
Mindjet mindmanager2022 mind map decompression installer tutorial
2022-2028 global capsule shell industry research and trend analysis report
MySQL variables, stored procedures and functions