简单制作许愿墙HTML

demo.html

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>许愿墙</title>
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <div class="container">
            <div class="item" style="background: #E3E197;">
                <p>路漫漫其修远兮...</p>
                <span>关闭</span>
                <!--span组合文档中的行内元素-->
            </div>
            <div class="item" style="background: #F8B3D0;">
                <p>I have a dream...</p>
                <span>关闭</span>
            </div>
            <div class="item" style="background: #bbe1f1;">
                <p>既然选择了远方,便只顾风雨兼程...</p>
                <span>关闭</span>
            </div>
        </div>
    </body>
</html>

style.css

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{
    background: #E3E197;
	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;
 }

  • 6
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值