html5 太空,HTML5 太空胶囊

CSS

语言:

CSSSCSS

确定

body {

background: #342e3d;

}

.container {

width: 500px;

height: 500px;

display: block;

margin: 100px auto;

}

.capsule-small {

width: 500px;

height: 200px;

border: 3px solid #595561;

background: rgba(82, 75, 90, .5);

border-radius: 100px;

display: block;

box-shadow: 30px 10px 0 0 rgba(0, 0, 0, 0.3), 30px 10px 0 0 rgba(82, 75, 90, 0.3) inset;

}

.circle {

background: #e3e3e3;

position: absolute;

margin: 3px;

}

.moon {

width: 20px;

height: 20px;

background: #f2ede3;

border-radius: 100%;

position: absolute;

box-shadow: -2px -2px 0 0 #d1bda7 inset;

}

.moon:after {

content: '';

width: 7px;

height: 7px;

margin: 4px;

background: #e9d6c0;

border-radius: 100%;

position: absolute;

}

.moon:before {

content: '';

width: 2px;

height: 2px;

margin: 10px;

background: #e9d6c0;

border-radius: 100%;

position: absolute;

}

.earth {

width: 30px;

height: 30px;

background: #2257c9;

border-radius: 100%;

box-shadow: -3px -3px 0 0 rgba(0, 0, 0, 0.3) inset, 2px 1px 0 0 #a8d806 inset;

position: absolute;

}

.earth:before {

content: '';

width: 6px;

height: 6px;

margin: 5px;

background: #a8d806;

position: absolute;

}

.earth:after {

content: '';

width: 4px;

height: 4px;

margin: 6px 12px;

background: #a8d806;

border-radius: 100%;

position: absolute;

}

.sun {

width: 30px;

height: 30px;

background: #fcea2a;

border-radius: 100%;

margin: 100px;

box-shadow: 0px 0px 5px 10px #f4a40e;

position: absolute;

}

.mars {

width: 25px;

height: 25px;

background: #d69d63;

border-radius: 100%;

margin: 100px;

box-shadow: -3px -3px 0 0 rgba(0, 0, 0, 0.3) inset;

position: absolute;

}

.mars:after {

content: '';

width: 7px;

height: 7px;

margin: 12px;

background: #917652;

border-radius: 100%;

position: absolute;

}

.mars:before {

content: '';

width: 4px;

height: 4px;

margin: 10px;

background: #917652;

border-radius: 100%;

position: absolute;

}

.venus {

width: 30px;

height: 30px;

background: #f36b32;

border-radius: 100%;

margin: 100px;

box-shadow: -3px -3px 0 0 rgba(0, 0, 0, 0.3) inset;

position: absolute;

}

.venus:after {

content: '';

width: 7px;

height: 7px;

margin: 10px;

background: #6b260b;

border-radius: 100%;

position: absolute;

}

.venus:before {

content: '';

width: 4px;

height: 4px;

margin: 15px 20px;

background: #6b260b;

border-radius: 100%;

position: absolute;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值