css实现按钮悬浮凸出阴影效果代码

代码语言:html

所属分类:悬停

代码描述:css实现按钮悬浮凸出阴影效果代码

代码标签: css 按钮 悬浮 凸出 阴影

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

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

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

  
  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Roboto:400,300,700,100|Montserrat:400,700|Catamaran:400,100'>

<style>
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: arial;
  background: #f4f7ff;
}
a {
  display: block;
  position: relative;
  top:0;
  left:0;
  transform:scale(1);
  padding: 15px 20px;
  font-size: 1.2rem;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.25s;
  border-radius: 4px;
  z-index: 2;
  margin:0 2px;
}
a:hover{
  top:-10px;
  transform:scale(1.1);
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0