用html写出生日蛋糕,纯HTML5+CSS3制作生日蛋糕代码

.birthday .container{

width:600px;

height:600px;

margin:0px auto;

background: #fafafa;

border-radius:5px;

position: relative;

}

/**

** 顶层的

**/

.birthday .top-one{

position: absolute;

width:280px;

height: 280px;

bottom: 200px;

left:160px;

}

.birthday .top-one .bottom{

position: absolute;

width:280px;

height: 280px;

bottom:-30px;

border:1px solid #3e2001;

border-radius: 140px;

transform: rotateX(60deg);

z-index: 4;

background: #3e2001;

box-shadow: 0px 0px 20px #3e2001;

}

.birthday .top-one .top{

position: absolute;

width:280px;

height: 280px;

top:-50px;

border-radius: 140px;

background: #FFFFFF;

你可能感兴趣的:(用html写出生日蛋糕)