css实现border边框渐变效果代码

代码语言:html

所属分类:布局界面

代码描述:css实现border边框渐变效果代码

代码标签: css border 边框 渐变

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  
  
<style>
.gradientBorder {
  background: linear-gradient(grey, grey) padding-box, linear-gradient(45deg, magenta, cyan) border-box;
  border: 5px solid transparent;
}

.gradientBorder2 {
  background: linear-gradient(black, black) padding-box, linear-gradient(45deg, magenta, cyan) border-box;
  border: 5px solid transparent;
}

body {
  min-height: 100vh;
  background: black;
  display: flex;
  flex-direction: column;
  justify-cont.........完整代码请登录后点击上方下载按钮下载查看

网友评论0