当前位置:网站首页>Set different background colors for the border and text of the button
Set different background colors for the border and text of the button
2022-07-01 00:39:00 【dancria】
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> Novice tutorial (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> Linear gradient - transparency </h3>
<p> To add transparency , We use rgba() Function to define the color node .rgba() The last parameter in the function can be from 0 To 1 Value , It defines the transparency of colors :0 Indicates full transparency ,1 Indicates full opacity .</p><div id="grad1">
<p class="text"
> Click here to login </p>
</div><p><strong> Be careful :</strong> Internet Explorer 8 And previous versions do not support gradients .</p>
</body>
</html>

边栏推荐
- 20220215 CTF misc buuctf Xiaoming's safe binwalk analysis DD command separate rar file archpr brute force password cracking
- Simple application example of rhai script engine
- The programmer's girlfriend gave me a fatigue driving test
- Wordpress blog uses volcano engine veimagex for static resource CDN acceleration (free)
- Basic knowledge of Embedded Network - introduction of mqtt
- 2022-2028 global weight loss ginger tea industry research and trend analysis report
- leetcode 474. Ones and Zeroes 一和零(中等)
- Basic data structure of redis
- Docsify building a personal minimalist knowledge warehouse
- Rust controls Dajiang programmable UAV Tello
猜你喜欢

The principle of journal node

Two-stage RO: part 1

Vulnerability discovery - App application vulnerability probe type utilization and repair

2022-2028 global rampant travel industry research and trend analysis report

C#生成putty格式的ppk文件(支持passphrase)

剑指 Offer 19. 正则表达式匹配

PyTorch安装并使用gpu加速

How to edit special effects in VR panorama? How to display detailed functions?

SAP ui5 beginner tutorial 19 - SAP ui5 data types and complex data binding

Deployment of mini version message queue based on redis6.0
随机推荐
Wordpress blog uses volcano engine veimagex for static resource CDN acceleration (free)
[PHP] self developed framework qphp, used by qphp framework
P4学习——Basic Tunneling
Authentication principle of Ranger plug-in
第53章 从业务逻辑实现角度整体性理解程序
2022-2028 global elevator emergency communication system industry research and trend analysis report
2022-2028 global capsule shell industry research and trend analysis report
The principle and related problems of acid in MySQL
Oracle-数据完整性
2022-2028 global ultra high purity electrolytic iron sheet industry research and trend analysis report
2022-2028 global mobile scanning radiology room industry survey and trend analysis report
Never use redis expired monitoring to implement scheduled tasks!
Bugku CTF daily one question dark cloud invitation code
Ybtoj exchange game [tree chain splitting, line segment tree merging]
C language file operation for conquering C language
HDU 2488 A Knight's Journey(DFS)
How to edit special effects in VR panorama? How to display detailed functions?
Integer to hexadecimal string PTA
2022-2028 global PTFE lined valve industry research and trend analysis report
Vulnerability discovery - App application vulnerability probe type utilization and repair