当前位置:网站首页>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>

边栏推荐
- 2022-2028 global electric yacht industry research and trend analysis report
- JS bubble sort and select sort
- Confirm() method of window
- 写给 5000 粉丝的一封信!
- 2022-2028 global 3D printing ASA consumables industry research and trend analysis report
- Gateway service gateway
- Introduction to ES6 promise, new features of ES7 and es8 async and await
- Bugku CTF daily one question dark cloud invitation code
- Which is better, server rental or hosting services in the United States?
- C WinForm program interface optimization example
猜你喜欢

Docsify building a personal minimalist knowledge warehouse

Redis - sentinel mode

2022-2028 global rotary transmission system industry research and trend analysis report

Gateway service gateway

Wechat official account development (1) introduction to wechat official account

Quick start of wechat applet -- project introduction

From January 11, 2007 to January 11, 2022, I have been in SAP Chengdu Research Institute for 15 years

2022-2028 global elevator emergency communication system industry research and trend analysis report

CMU15445 (Fall 2019) 之 Project#1 - Buffer Pool 详解

2022-2028 global encrypted external hard disk industry research and trend analysis report
随机推荐
C WinForm program interface optimization example
Basic knowledge of Embedded Network - introduction of mqtt
Integer to hexadecimal string PTA
PyTorch安装并使用gpu加速
Plot size and resolution with R markdown, knitr, pandoc, beamer
优质的水泵 SolidWorks模型素材推荐,不容错过
CMU15445 (Fall 2019) 之 Project#1 - Buffer Pool 详解
Simple application example of rhai script engine
写给 5000 粉丝的一封信!
Ranger plug-in development (Part 2)
[designmode] singleton pattern
ArrayList分析1-循环、扩容、版本
File reading and writing for rust file system processing - rust Practice Guide
How to edit special effects in VR panorama? How to display detailed functions?
Error 2059 when Navicat connects to MySQL
Teach you how to use Hal library to get started -- become a lighting master
Confirm() method of window
Wordpress blog uses volcano engine veimagex for static resource CDN acceleration (free)
To tell you the truth, ThreadLocal is really not an advanced thing
NE555波形发生器手把手教程之NE555内部结构(一)