driverjs实现一个自适应页面新手指南引导层效果代码

代码语言:html

所属分类:响应式

代码描述:driverjs实现一个自适应页面新手指南引导层效果代码

代码标签: 适应 页面 新手指南 引导 效果

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

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

<head>

  <meta charset="UTF-8">

  <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/driver.min.css">
  
<style>
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");
body {
  display: grid;
  width: 100%;
  margin: 0;
  font-family: "Lato", sans-serif;
}
body .menu {
  background: #00000020;
  margin: 0;
  width: 5rem;
  border-radius: 0 0 0.5rem 0;
  padding: 1rem 0;
  display: grid;
  align-items: center;
  justify-items: center;
  position: fixed;
  grid-gap: 1rem;
  height: 30rem;
}
body .menu span {
  cursor: pointer;
}
body .menu span:hover {
  color: #444;
}
body .menu span.logo {
  background: #22222290;
  color: white;
  padding: 0.5rem;
  border-radius: 3rem;
  font-size: 1.75rem;
  border: 5px solid #22222290;
}
body .content {
  margin-left: 5rem;
  width: calc(100% - 7rem);
  padding: 1rem;
  columns: 4 200px;
  column-gap: 1rem;
}
body .content .card {
  background: #00000015;
  padding: 1rem;
  background-size: cover;
  margin: 0 0 1rem;
  break-inside: avoid;
  border-radius: 0.4rem;
  display: flex;
  flex-flow: column;
}
body .content .card.landscape {
  min-height: 12.5rem;
}
body .content .card.image {
  min-height: 33rem;
}
body .content .card img {
  width: 175px;
  margin: 1rem auto;
  border: 0.5rem solid #fff;
}
body .content .card .tags {
  list-style: none;
  display: inline-flex;
  margin: 0;
  padding: 0;
}
body .content .card .tags li {
  margin: 0.2rem;
  background: #fff;
  padding: 0.5rem;
  border-radius: 0.2rem;
  cursor: pointer;
}
body .content .card .tags li:hover {
  background: #00000020;
}
body .content .card button {
  border: 1px solid #222;
  padding: 0.5rem;
  border-radius: 0.2rem;
  width: fit-content;
  cursor: pointer;
  font-size: 1rem;
}
body .content .card button:hover {
  background: #22222221 0;
}
body .content .card h3 {
  margin: 1rem 0 0 0;
}
body .content .card.event h2,
body .content .card.event h3 {
  text-align: center;
}

#start {
  border: 1px solid #222;
  padding: 0.5rem;
  .........完整代码请登录后点击上方下载按钮下载查看

网友评论0