div+css布局实现夜晚海岛明月升起夜景代码

代码语言:html

所属分类:布局界面

代码描述:div+css布局实现夜晚海岛明月升起夜景代码

代码标签: div css布局 夜晚 海岛 明月 升起 夜景 代码

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

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">

<style>
    body {
  display: grid;
  place-items: center;
  height: 100vh;
  background-image: linear-gradient(#010101, #58f, #14a);
}
.mountains {
  width: 100%;
  height: 50vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background-image: linear-gradient(transparent, rgba(255,25,155,0.125));
  -webkit-box-reflect: below 0px linear-gradient(transparent, rgba(255,255,255,0.5));
}
.mountains .mountain {
  clip-path: polygon(67.513% 28.005%, 77.509% 59.207%, 82.229% 44.501%, 100% 100%, 0% 100%, 17.78% 44.501%, 22.491% 59.207%, 32.4.........完整代码请登录后点击上方下载按钮下载查看

网友评论0