html画海绵宝宝css3,CSS3 海绵宝宝

CSS

语言:

CSSSCSS

确定

body {

background: #F9ED39;

zoom: .5;

}

.rosto {

position: absolute;

top: 30%;

left: 50%;

margin-left: -200px;

}

.olho {

height: 200px;

width: 200px;

background: #FFF;

border-radius: 100%;

border: 6px solid #000;

position: relative;

display: inline-block;

margin-left: -5px;

}

.olho1 {

background: #4AF;

height: 100px;

width: 100px;

border: 4px solid #000;

border-radius: 100%;

position: absolute;

}

#esquerdo > .olho1 {

left: 80px;

top: 50px;

}

#direito > .olho1 {

right: 80px;

top: 50px;

}

.olho2 {

background: #000;

height: 50px;

width: 50px;

border: 3px solid #000;

border-radius: 100%;

position: absolute;

}

#esquerdo > .olho2 {

left: 110px;

top: 75px;

}

#direito > .olho2 {

right: 110px;

top: 75px;

}

.sobrancelha {

height: 10px;

width: 40px;

background: #000;

position: absolute;

}

#primeira-sobrancelha {

margin-top: -5px;

margin-left: 10px;

-webkit-transform: rotate(50deg);

transform: rotate(50deg);

}

#segunda-sobrancelha {

-webkit-transform: rotate(90deg);

transform: rotate(90deg);

margin-left: 80px;

margin-top: -26px;

}

#terceira-sobrancelha {

margin-top: -5px;

-webkit-transform: rotate(-50deg);

transform: rotate(-50deg);

margin-left: 150px;

}

.detail {

width: 50px;

height: 70px;

background-color: rgba(126, 67, 0, 0.15);

border-radius: 100%;

position: absolute;

z-index: -2;

}

.bg-details {

position: relative;

height: 20%;

width: 100%;

}

.nariz {

width: 70px;

-webkit-transform: rotate(10deg);

transform: rotate(10deg);

height: 97px;

border-radius: 50%;

background: #000;

border: 6px solid #000;

position: absolute;

top: 110px;

left: 164px;

}

.nariz-detalhe {

width: 72px;

height: 106px;

border-radius: 50%;

background: #F9ED39;

position: absolute;

top: 8px;

-webkit-transform: rotate(4deg) translateY(-7px);

transform: rotate(4deg) translateY(-7px);

left: -2px;

}

.boca {

top: 170px;

z-index: -1;

left: -50px;

width: 500px;

height: 130px;

border-radius: 50%;

position: absolute;

background: #000;

}

.boca-detalhe {

width: 530px;

height: 140px;

margin-left: -19px;

border-radius: 50%;

background: #F9ED39;

margin-top: -15px;

}

.dente {

height: 50px;

width: 50px;

background: #FFF;

border-bottom-left-radius: 10px;

border-bottom-right-radius: 10px;

border: 4px solid #000;

position: absolute;

}

#dente-esquerdo {

-webkit-transform: rotate(1deg);

transform: rotate(1deg);

margin-left: 190px;

margin-top: 1px;

}

#dente-direito {

-webkit-transform: rotate(-2deg);

transform: rotate(-2deg);

margin-left: 260px;

}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
根据提供的引用内容,你使用CSS+HTML搭建了一个属于自己的网站,展示了海绵宝宝动漫。你使用了HTMLHTML5的音频标签,并且使用了Hbuilder作为编辑网站的工具。下面是一个关于如何设计海绵宝宝HTML期末作业网站的示例: ```html <!DOCTYPE html> <html> <head> <title>海绵宝宝动漫展示网页</title> <style> /* CSS样式 */ body { background-color: #f0f0f0; font-family: Arial, sans-serif; } h1 { text-align: center; color: #ff6600; } .container { max-width: 800px; margin: 0 auto; padding: 20px; background-color: #ffffff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } .image { text-align: center; margin-bottom: 20px; } .image img { max-width: 100%; height: auto; } .description { text-align: justify; line-height: 1.5; } .audio { text-align: center; margin-top: 20px; } </style> </head> <body> <div class="container"> <h1>海绵宝宝动漫展示网页</h1> <div class="image"> <img src="spongebob.jpg" alt="海绵宝宝"> </div> <div class="description"> <p>海绵宝宝是一部非常受欢迎的动漫片,讲述了海绵宝宝和他的朋友们在比基尼海滩的冒险故事。</p> <p>在这个网页中,你可以了解海绵宝宝的故事,观看海绵宝宝的图片,并且还可以听到海绵宝宝的主题曲。</p> </div> <div class="audio"> <audio controls> <source src="spongebob_theme.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio> </div> </div> </body> </html> ``` 这个示例网页使用了CSS样式来设置背景颜色、字体、标题颜色等。网页中包含了海绵宝宝的图片和描述,并且还添加了海绵宝宝的主题曲,你可以通过控制音频播放器来播放主题曲。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值