一个div布局实现书架效果代码

代码语言:html

所属分类:布局界面

代码描述:一个div布局实现书架效果代码

代码标签: 实现 书架 效果

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


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

<head>

  <meta charset="UTF-8">
  

  
  
<style>
body {
  min-height: 310px;
  height: 100vh;
  position: relative;
  background-color: #ffdb00;
}
div {
  position: absolute;
  left: 50%;
  top: 50%;
}
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);
  }
}
#iconic {
  width: 11.3em;
  height: 16.7em;
  margin-left: -5.65em;
  margin-top: -8.35em;
  background-repeat: no-repeat;
  background-image: linear-gradient(white, white), linear-gradient(white, white), linear-gradient(to bottom, #eee 1.2em, white 1.2em), linear-gradient(to bottom, #eee 1.2em, white 1.2em), linear-gradient(to top, #eee 1.2em, white 1.2em), linear-gradient(to top, #eee 1.2em, white 1.2em), repeating-linear-gradient(to bottom, #ddd, #ddd 0.15em, white 0.15em, white 3.4em, #ddd 3.4em, #ddd 3.5em, white 3.5em, white 3.8em), repeating-linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 3.5em, #ddd 3.5em, #ddd 3.8em), repeating-linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 3.5em, #ddd 3.5em, #ddd 3.8em), repeating-linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 3.5em, white 3.5em, white 3.8em), linear-gradient(to top, rgba(255,255,255,0) 1.05em, #ddd.........完整代码请登录后点击上方下载按钮下载查看

网友评论0