单个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-grad.........完整代码请登录后点击上方下载按钮下载查看

网友评论0