日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > HTML >内容正文

HTML

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

發布時間:2023/12/4 HTML 53 豆豆
生活随笔 收集整理的這篇文章主要介紹了 用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;

transform: rotateX(60deg);

box-shadow: 2px 2px 20px #b7b7b7;

z-index: 6;

background: -webkit-repeating-radial-gradient(circle, #783d01, #3e2001 10px, #914909 10px,white 20px);

background: -moz-repeating-radial-gradient(circle, #783d01, #3e2001 10px,#914909 10px,white 20px);

}

.birthday .top-one .side{

position: absolute;

top:95px;

width:280px;

height: 70px;

border:1px solid #3e2001;

border-top-width: 0px;

border-bottom-width: 0px;

background: #FFFFFF;

z-index: 5;

background: #3e2001;

}

/**

** 底層的

**/

.birthday .bottom-one{

position: absolute;

width:400px;

height: 400px;

bottom: 0px;

left:100px;

}

.birthday .bottom-one .bottom{

position: absolute;

width:400px;

height: 400px;

bottom:-30px;

border:1px solid #914909;

border-radius: 200px;

transform: rotateX(60deg);

box-shadow: 2px 2px 20px #914909;

z-index: 1;

background: #3e2001;

overflow: hidden;

}

.birthday .bottom-one .line{

position: absolute;

width:400px;

height: 400px;

border-radius: 200px;

z-index: 1;

}

.birthday .bottom-one .line1{

bottom: 30px;

border:5px solid #783d01;

left:-5px;

z-index: 1;

}

.birthday .bottom-one .top{

position: absolute;

width:400px;

height: 400px;

top:-100px;

border:1px solid #3e2001;

border-radius: 200px;

background: #FFFFFF;

transform: rotateX(60deg);

z-index: 3;

background: #783d01;

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

}

.birthday .bottom-one .side{

position: absolute;

top:100px;

width:400px;

height: 130px;

border:1px solid #3e2001;

border-top-width: 0px;

border-bottom-width: 0px;

background: #3e2001;

z-index: 2;

}

/**

** 底層的文字

**/

.birthday .flower{

position: relative;

text-align: justify;

z-index: 9;

top:200px;

font-size: 32px;

font-family: "Helvetica Neue", "Noto Sans CJK SC", "Source Han Sans CN";

color:#FFFFFF;

font-weight: bold;

}

.birthday .flower:after{

content:"";

display:inline-block;

position: relative;

width:100%;

}

.birthday .flower i{

position: relative;

width:80px;

line-height: 80px;

display: inline-block;

border-radius: 50%;

border:2px solid #783d01;

text-align: center;

}

/**

** 頂層的文字

**/

.birthday .top-one .text{

width:100%;

text-align: center;

position: absolute;

top:165px;

z-index: 9;

margin:0px auto;

font-size: 30px;

color:#FFFFFF;

transform: rotateX(60deg) skew(10deg,20deg);

}

/**

** 蠟燭

**/

.birthday .candle{

width:10px;

height:80px;

margin:0px auto;

position: absolute;

left:295px;

top:130px;

z-index: 9;

}

.birthday .candle .body{

width:10px;

height:70px;

margin:0px auto;

background: red;

border-bottom-width: 0px;

}

.birthday .candle .top{

width:10px;

height: 10px;

border-radius: 5px;

transform: rotateX(60deg);

position: relative;

top:5px;

background: red;

}

.birthday .candle .bottom{

width:10px;

height: 10px;

border-radius: 5px;

transform: rotateX(60deg);

position: relative;

bottom:5px;

background: red;

box-shadow: 1px 1px 10px red;

}

.birthday .candle .fire{

position: absolute;

width:6px;

height: 6px;

left:2px;

transform: rotate(45deg);

background: #ffd507;

box-shadow: 0px 0px 20px #ffff00, 2px 2px 10px red;

}

Happy Birthday

總結

以上是生活随笔為你收集整理的用html写出生日蛋糕,纯HTML5+CSS3制作生日蛋糕代码的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。