纯css实现网格响应式时间线效果

代码语言:html

所属分类:布局界面

代码描述:纯css实现网格响应式时间线效果

代码标签: 网格 响应 时间 线 效果

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

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

<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Karla:wght@400;700&display=swap" rel="stylesheet">
<style>
* {
  box-sizing: border-box;
}

img {
  width: 100%;
  border-radius: 5px;
}
@media screen and (max-width: 599px) {
  img {
    height: 250px;
    object-fit: cover;
  }
}

body {
  background: #2b2a2b;
  color: white;
  margin: 0;
  padding: 0;
}

main {
  padding: 2rem;
  max-width: 1400px;
  margin: auto;
}

h1 {
  font-family: "Poppins", sans-serif;
}

h2 {
  color: #ed666f;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  margin: 0.5rem 0;
}

@media screen and (min-width: 600px) {
  .grid-wra.........完整代码请登录后点击上方下载按钮下载查看

网友评论0