利⽤CSSfilter属性做出渐变阴影效果
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
<!--
#app {
position: relative;
margin-left: 120px;
margin-top: 120px;
width: 200px;
height: 200px;
border-radius: 50%;
background-image: linear-gradient(135deg, #36BEFA, #363DFA);
z-index: 1;
}
#app:after {
position: absolute;
width: 102%;
height: 102%;
content: '';
filter: blur(12px);
left: 0px;
opacity: 0.9;
z-index: -1;
background-image: linear-gradient(135deg, #36BEFA, #363DFA);margin属性怎么用
border-radius: 50%;
}
-->
</style>
</head>
<body>
<div id="container">
<div id="app"></div>
</div>
</body>
</html>
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论