<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div >
<div ></div>
<div ></div>
<div ></div>
<div ></div>
<div ></div>
</div>
</body>
</html>
<style>
html,
body {
width: 100%;
height: 100vh;
padding: 0;
margin: 0;
background-color: #fff;
background-image: linear-gradient( 109.6deg, rgba(24,138,141,1) 11.2%, rgba(96,221,142,1) 91.1% );
}
.rbutton {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: row;
}
.rbutton-item {
transition: .2s;
width: 100px;
height: 100px;
margin: 10px;
background-color: rgba(255, 255, 255, .1);
;
border-radius: 20px;
box-shadow:
8px 8px 16px rgba(0, 0, 0, .3),
inset 8px 8px 16px rgba(255, 255, 255, .3),
inset -8px -8px 16px rgba(0, 0, 0, .3);
}
.rbutton-item:hover {
transform: translateY(-2px);
box-shadow:
8px 8px 16px rgba(0, 0, 0, .3),
inset 8px 8px 16px rgba(255, 255, 255, .3),
inset -8px -8px 16px rgba(0, 0, 0, .3);
}
.rbutton-item:active {
transform: scale(1.05);
border-radius: 25px;
box-shadow:
4px 4px 8px rgba(0, 0, 0, .3),
inset 4px 4px 8px rgba(255, 255, 255, .3),
inset -4px -4px 8px rgba(0, 0, 0, .3);
}
</style>
Document【CSS】按钮
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
上一篇:javascript执行机制
下一篇:【CSS】拼图验证练习
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
有趣的CSS - 汉堡菜单按钮
用 css 实现汉堡菜单图标与关闭图标过渡动画交互效果。
css 汉堡图标 动画 ux 交互体验 -
有趣的CSS - 新拟态按钮
用css写的一个好看的新拟态风格的按钮。
css 新拟态 按钮 动效设计 ux/ui -
有趣的CSS - 多彩变化的按钮
用css实现一个五彩斑斓的变化按钮。
css html 按钮 动画 动效 -
CSS 彩虹按钮效果
【代码】CSS 彩虹按钮效果。
css 前端 javascript 4s -
CSS按钮点击效果
<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>wgchen</title> meta na.
javascript 前端 html 5e ico