css实现立体方块悬浮突出效果代码

代码语言:html

所属分类:悬停

代码描述:css实现立体方块悬浮突出效果代码

代码标签: 方块 悬浮 突出 效果

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


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

<head>

  <meta charset="UTF-8">

  
  
  
  
<style>
body {
  background: #2E426C;
  overflow: hidden;
}

p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2em;
  position: absolute;
  top: 1em;
  left: 1em;
  margin: 0;
  color: #75A2A2;
}

#Container {
  -webkit-perspective: 500px;
  perspective: 1000px;
}

#Tiles {
  width: 630px;
  height: 630px;
  position: absolute;
  left: 50%;
  top: -100px;
  margin-left: -315px;
  -webkit-transform: rotateZ(0deg);
  transform: rotateX(75deg) rotateY(0deg) rotateZ(45deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.title {
  width: 200px;
  height: 200px;
  float: left;
  margin: 0 10px 10px 0;
  cursor: pointer;
}
.title:before {
  position: absolute;
  content: '';
  width: 200px;
  height: 200px;
  background: #75A2A2;
  -web.........完整代码请登录后点击上方下载按钮下载查看

网友评论0