css布局实现彩虹效果

代码语言:html

所属分类:布局界面

代码描述:css布局实现彩虹效果

代码标签: 彩虹 效果

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


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

<head>

  <meta charset="UTF-8">
  
 <link href='https://fonts.googleapis.com/css?family=Allan' rel='stylesheet'>
  
  
  
<style>
body {
  padding: 0;
  margin: 0;
  background-color:#DDFFF7;
}
h3{
 font-family: 'Allan'; 
  margin-left:350px;
  margin-top:-60px;
}

.container {
  background-color:white;
  display: flex;
  height: 100vh;
  width: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
background-color:#DDFFF7;
}

.stripe1 {
  background-color:#ff0000 ;
  height: 250px;
  width: 500px;
  border-radius: 275px 275px 0 0;
  position: relative;
  
  
}

.stripe2 {
  background-color: orange;
  height: 230px;
  width: 460px;
  top: 20px;
  left: 20px;
  border-radius: 275px 275px 0 0;
  position: relative;
  
}

.stripe3 {
  background-color: yellow;
  height: 210px;
  width: 417px;
  top: 20px;
  left: 20px;
  border-radius: 275px 275px 0 0;
  position: relative;
 
}

.stripe4 {
  background-color: green;
  height: 190px;
  width: 375px;
  top: 20px;
  left: 20px;
  border-radius: 275px 275px 0 0;
  position: relative;
 
}
.stripe5 {
  background-color: blue;
  height: 170px;
  width: 335px;
  top: 20px;
  left: 20px;
  border-radius: 275px 275px 0 0;
  position: relative;
  
}

.stripe6 {
  background-color: indigo;
  height: 150px;
  width: 295px;
  top: 20px;
  left: 20px;
  border-radius: 275px 275px 0 0;
  position: relative;
   
}

.stripe7 {
  background-color:#ee82ee;
  height: 130px;
  width: 255px;
  top: 20px;
  left: 20px;
  border-radius: 275px 275px 0 0;
  position: relative;
  
}

.stripe8 {
  background-color:#DDFFF7 ;
  height: 110px;
  width: 215px;
  top: 20px;
  left: 20px;
  border-radius: 275px 275px 0 0;
  position: relative;
  
 
}

.cloud-container {
  position: absolute;
  display: flex;
  top: 280px;
}

.cloud {
  background: rgba(.........完整代码请登录后点击上方下载按钮下载查看

网友评论0