纯css实现卡片悬浮切换效果

代码语言:html

所属分类:选项卡

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


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<title> Awesome-css-card-hover-effect </title>
<style>
    body {
  background-color: red;
}

.page_title {
  text-align: center;
  color: whitesmoke;
  text-transform: uppercase;
  font-weight: 100;
  font-size: 50px;
}

.container {
  /* 	background:whitesmoke; */
  border-radius: 10pt;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.box {
  position: relative;
  width: 370px;
  height: 270px;
  background: white;
  margin: 15px;
  box-sizing: border-box;
  border-radius: 10px;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0