<!DOCTYPE html>
<html>CSS
<head>
<meta charset="utf-8" >
<title>许愿墙</title>
<link rel="stylesheet" href="css/style.css" >
</head>
<body>
<div class="container">
<div class="item" style="background: #E3E197;">
<p>昨夜西风凋碧树</p>
<span>关闭</span>
</div>
<div class="item" style="background-image: url(img/pg.jpeg);">
<p>独上高楼,望尽天涯路</p>
<span>关闭</span>
</div>
<div class="item" style="background: #BBE1F1;">
<p>蓦然回首,那人在灯火阑珊处</p>
<span>关闭</span>
</div>
</div>
</body>
</html>
html{
height: 100%;
}
body{
background: linear-gradient(to bottom,#CBEBDB 0%,#3794c0 120%);
height: 100%;
margin: 0;
}
.container{
margin: 0 auto;
padding: 50px 0;
width: 720px;
overflow: hidden;
}
.container p{
height: 80px;
margin: 30px 10px;
overflow: hidden;
word-wrap: break-word;
line-height: 1.5;
}
.container span{
text-decoration: none;
color: white;
position: relative;
left: 150px;
font-size: 14px;
}
.item{
width: 200px;
height: 200px;
line-height: 30px;
box-shadow: 0 2px 10px 1px rgba(0 0 0 0.2);
float: left;
margin: 0 20px;
border-bottom-left-radius: 20px 500px;
border-bottom-right-radius: 500px 30px;
border-top-right-radius: 5px 100px;
}
.linear{
background:linear-gradient(to bottom, #4b6c9c , #5ac4ed);
}