单个div+css布局实现苹果lighting充电接口效果代码

代码语言:html

所属分类:布局界面

代码描述:单个div+css布局实现苹果lighting充电接口效果代码

代码标签: 实现 苹果 lighting 充电 接口 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">

  
<style>
body {
  height: 100vh;
  background-color: white;
  text-align: center;
}
div {
  height: 100%;
  position: relative;
}
div:before,
div:after {
  display: block;
  content: '';
  position: absolute;
}
@media (max-width: 400px) {
  div:not(.no-scale) {
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
  }
}
#power {
  font-size: 10px;
  background-color: white;
  background-repeat: no-repeat;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#ddd), color-stop(13%, #f7f7f7), color-stop(18%, white), color-stop(35%, white), color-stop(38%, #f7f7f7), color-stop(50%, #f7f7f7), color-stop(70%, #eee), color-stop(85%, #ddd), color-stop(95%, #ccc), to(#bbb)), -webkit-gradient(linear, right top, left top, from(rgba(0,0,0,0.1)), to(rgba(0,0,0,0))), -webkit-gradient(linear, left top, left bottom, from(#ccc), color-stop(10%, #ddd), color-stop(30%, #edf0f3), color-stop(60%, #edf0f3), color-stop(92%, #ccc), color-stop(98%, #bbb)), -webkit-gradient(linear, right top, left top, from(rgba(0,0,0,0.1)), to(rgba(0,0,0,0))), -webkit-gradient(linear, left top, left bottom, from(#ccc), color-stop(10%, #ddd), color-stop(30%, #edf0f3), color-stop(60%, #edf0f3), color-stop(95%, #ccc), to(#bbb));
  background-image: linear-gradient(to bottom, #ddd, #f7f7f7 13%, white 18%, white 35%, #f7f7f7 38%, #f7f7f7 50%, #eee 70%, #ddd 85%, #ccc 95%, #bbb 100%), linear-gradient(to left, rgba(0,0,0,0.1), rgba(0,0,0,0)), linear-gradient(to bottom, #ccc, #ddd 10%, #edf0f3 30%, #edf0f3 60%, #ccc 92%, #bbb 98%), linear-gradient(to left, rgba(0,0,0,0.1), rgba(0,0,0,0)), linear-gradient(to bottom, #ccc, #ddd 10%, #edf0f3 30%, #edf0f3 60%, #ccc 95%, #bbb 100%);
  background-size: 11em 6.2em, 1em 3.2em, 8em 3.2em, 0.8em 2.3em, calc(50% - 4em) 2.3em;
  background-position: calc(50% + 9.5em) 50%, calc(50% + 3.5em) 50%, 50% 50%, calc(50% - 4.4em) 50%, 0 50%;
}
@media screen and (max-width: 400px) {
  #power {
    font-size: 8px;
    margin-left: -12em;.........完整代码请登录后点击上方下载按钮下载查看

网友评论0