html--比萨斜塔

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
  <META NAME="Generator" CONTENT="EditPlus">
  <META NAME="Author" CONTENT="">
  <META NAME="Keywords" CONTENT="">
  <META NAME="Description" CONTENT="">
  <style>
  *,
*:after,
*:before {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #d7f7ff;
}
.tower {
  width: 30vh;
  height: 90vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-transform: rotate(0);
          transform: rotate(0);
  top: 0;
  position: relative;
  -webkit-animation: boom 5s linear forwards;
          animation: boom 5s linear forwards;
}
.tower__balcony {
  width: 90%;
  height: 4%;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  border-top: 0.9vh solid #584b36;
}
.tower__balcony div {
  width: 0.9vh;
  height: 100%;
  background: #584b36;
}
.tower__balcony div:nth-child(even) {
  width: 1.2vh;
  height: 200%;
  border-radius: 20% 20% 0 0;
}
.tower__balcony div:nth-child(6) {
  height: 450%;
  border-radius: 0;
}
.tower__handrail {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: absolute;
  bottom: 15%;
  left: -10%;
  width: 120%;
  height: 23%;
  z-index: 2;
  border-top: 0.9vh solid #584b36;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
}
.tower__handrail div {
  width: 0.9vh;
  height: 200%;
  background: #584b36;
  border-radius: 30% 30% 0 0;
}
.tower__handrail div:nth-child(3) {
  margin: 0 2.4vh;
}
.tower__roof {
  width: 90%;
  height: 15%;
  margin: 0 auto;
  background: -webkit-gradient(linear, left top, right top, color-stop(50%, #f8e3c2), color-stop(50%, #f1c785));
  background: linear-gradient(left, #f8e3c2 50%, #f1c785 50%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  position: relative;
  border: 0.9vh solid #584b36;
  border-bottom: none;
}
.tower__roof:after {
  content: "";
  position: absolute;
  width: 135%;
  height: 30%;
  background: -webkit-gradient(linear, right top, left top, from(#f8e3c2), to(#f1c785));
  background: linear-gradient(right, #f8e3c2, #f1c785);
  left: 50%;
  bottom: -10%;
  z-index: 1;
  -webkit-transform: translate3d(-50%, 0, 0);
          transform: translate3d(-50%, 0, 0);
  border: 0.9vh solid #584b36;
  border-radius: 9vh;
}
.tower__roof-door {
  width: 23%;
  height: 80%;
  border-radius: 50% 50% 0 0;
  background-color: #c9a772;
  border: 0.9vh solid #584b36;
  border-bottom: none;
}
.tower__roof-door:nth-child(2) {
  width: 25%;
  height: 70%;
}
.tower__bottom {
  width: 100%;
  height: 20%;
  background: #f1c785;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  border: 0.9vh solid #584b36;
  border-top: none;
}
.tower__door {
  width: 27%;
  height: 80%;
  border-radius: 50% 50% 0 0/30% 30% 0 0;
  background: #c9a772;
  border: 0.9vh solid #584b36;
  border-bottom: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 5% 0;
}
.tower__door-stick {
  background: #564a35;
  height: 100%;
}
.tower__door-stick:nth-child(1) {
  width: 16%;
}
.tower__door-stick:nth-child(2) {
  width: 28%;
}
.tower__door-stick:nth-child(3) {
  width: 26%;
}
.tower__door-stick-container {
  width: 100%;
  height: 3%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.tower__floor {
  width: 100%;
  height: 13%;
  background: #f1c785;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  position: relative;
  border: 0.9vh solid #584b36;
  border-top: none;
  border-bottom: none;
}
.tower__floor:after {
  content: "";
  position: absolute;
  width: 120%;
  height: 30%;
  background: -webkit-gradient(linear, left top, right top, from(#f8e3c2), to(#f1c785));
  background: linear-gradient(left, #f8e3c2, #f1c785);
  left: 50%;
  bottom: -10%;
  z-index: 1;
  -webkit-transform: translate3d(-50%, 0, 0);
          transform: translate3d(-50%, 0, 0);
  border: 0.9vh solid #584b36;
  border-radius: 9vh;
}
.tower__window {
  width: 13%;
  height: 75%;
  background: #c9a772;
  border: 0.9vh solid #584b36;
  border-bottom: none;
  border-radius: 50% 50% 0 0/20% 20% 0 0;
}
.flag {
  position: absolute;
  left: 52%;
  top: -0.5%;
  width: 6vh;
  height: 4.5vh;
  background: -webkit-gradient(linear, left top, right top, color-stop(33%, #009246), color-stop(33%, #fff), color-stop(66%, #fff), color-stop(66%, #ce2b37));
  background: linear-gradient(to right, #009246 33%, #fff 33%, #fff 66%, #ce2b37 66%);
}
@-webkit-keyframes boom {
  100% {
    -webkit-transform: rotate(10deg);
            transform: rotate(10deg);
    top: 5%;
  }
}
@keyframes boom {
  100% {
    -webkit-transform: rotate(10deg);
            transform: rotate(10deg);
    top: 5%;
  }
}

  </style>
 </HEAD>

 <BODY>
<div class="tower">
  <div class="tower__balcony"><span class="flag"></span>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
  </div>
  <div class="tower__roof">
    <div class="tower__roof-door"></div>
    <div class="tower__roof-door"></div>
    <div class="tower__roof-door"></div>
    <div class="tower__handrail">
      <div></div>
      <div></div>
      <div></div>
      <div></div>
      <div></div>
    </div>
  </div>
  <div class="tower__floor">
    <div class="tower__window"></div>
    <div class="tower__window"></div>
    <div class="tower__window"></div>
    <div class="tower__window"></div>
    <div class="tower__window"></div>
  </div>
  <div class="tower__floor">
    <div class="tower__window"></div>
    <div class="tower__window"></div>
    <div class="tower__window"></div>
    <div class="tower__window"></div>
    <div class="tower__window"></div>
  </div>
  <div class="tower__floor">
    <div class="tower__window"></div>
    <div class="tower__window"></div>
    <div class="tower__window"></div>
    <div class="tower__window"></div>
    <div class="tower__window"></div>
  </div>
  <div class="tower__floor">
    <div class="tower__window"></div>
    <div class="tower__window"></div>
    <div class="tower__window"></div>
    <div class="tower__window"></div>
    <div class="tower__window"></div>
  </div>
  <div class="tower__bottom">
    <div class="tower__door">
      <div class="tower__door-stick-container">
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
      </div>
      <div class="tower__door-stick-container">
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
      </div>
      <div class="tower__door-stick-container">
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
      </div>
    </div>
    <div class="tower__door">
      <div class="tower__door-stick-container">
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
      </div>
      <div class="tower__door-stick-container">
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
      </div>
      <div class="tower__door-stick-container">
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
      </div>
    </div>
    <div class="tower__door">
      <div class="tower__door-stick-container">
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
      </div>
      <div class="tower__door-stick-container">
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
      </div>
      <div class="tower__door-stick-container">
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
        <div class="tower__door-stick"></div>
      </div>
    </div>
  </div>
</div>
  <script></script>
 </BODY>
</HTML>


在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

fo安方

觉得俺的文章还行,感谢打赏,爱

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值