css实现发光按钮效果代码

代码语言:html

所属分类:布局界面

代码描述:css实现发光按钮效果代码

代码标签: css 发光 按钮

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

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

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

  
  
<style>
body{
	display:flex;
	background:#222;
	overflow:hidden;
	align-items:center;
	justify-content:center;
	height:100vh;
}
button {
	font-size:30px;
  padding: 0.6em 2em;
  border: none;
  outline: none;
  color: white;
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

button:before {
  content: "";
  background: linear-gradient(
    90deg,
    #fff,
    transparent,
		 transparent,
		#fff
		
  );
  position: absolute;
  top: -2px;
  left: -2px;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0