200字范文,内容丰富有趣,生活中的好帮手!
200字范文 > 许愿墙HTML+CSS

许愿墙HTML+CSS

时间:2019-12-02 21:03:14

相关推荐

许愿墙HTML+CSS

<!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);

}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。