当前位置:网站首页>给按钮的边框和文字设置不同的背景色
给按钮的边框和文字设置不同的背景色
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>
边栏推荐
- [UML] UML class diagram
- ABAQUS 2022 latest edition - perfect realistic simulation solution
- Docsify building a personal minimalist knowledge warehouse
- "Experience" my understanding of user growth "new users"
- Confirm() method of window
- Integer to hexadecimal string PTA
- 【日常记录】——对BigDecimal除法运算时遇到的Bug
- Excuse me, does Flink support synchronizing data to sqlserver
- From January 11, 2007 to January 11, 2022, I have been in SAP Chengdu Research Institute for 15 years
- To tell you the truth, ThreadLocal is really not an advanced thing
猜你喜欢
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
Redis - how to understand publishing and subscribing
Software engineering best practices - project requirements analysis
New trend of embedded software development: Devops
Basic knowledge of Embedded Network - introduction of mqtt
C WinForm program interface optimization example
SAP ui5 beginner tutorial 19 - SAP ui5 data types and complex data binding
Host FL Studio fruit music production daw20.9
2022-2028 global weight loss ginger tea industry research and trend analysis report
Vulnerability discovery - App application vulnerability probe type utilization and repair
随机推荐
Line number of Jenkins pipeline script execution exception
[untitled]
优质的水泵 SolidWorks模型素材推荐,不容错过
合适的工作就是好工作
leetcode 474. Ones and zeroes (medium)
A detailed explanation of the implementation principle of go Distributed Link Tracking
The girlfriend said: if you want to understand the three MySQL logs, I will let you heiheihei!
Excuse me, does Flink support synchronizing data to sqlserver
IBL预计算的疑问终于解开了
VR panorama adds contrast function to make the display of differentiation effect more intuitive!
What value should testers play in requirements review? Two minutes will stop you from being stupid
CentOS installation starts redis
20220216 misc buuctf backdoor killing (d shield scanning) - clues in the packet (Base64 to image)
2022就要过去一半了,挣钱好难
2022-2028 global PTFE lined valve industry research and trend analysis report
Luogu p1144 shortest circuit count
Redis - cache penetration, cache breakdown, cache avalanche
Error 2059 when Navicat connects to MySQL
深度学习的历史
C language file operation for conquering C language