div+css实现响应式自适应团队介绍卡片悬浮效果代码
代码语言:html
所属分类:响应式
代码描述:div+css实现响应式自适应团队介绍卡片悬浮效果代码
代码标签: div css 响应式 自适应 团队 介绍 卡片 悬浮
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.5.1.css"> <style> @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;800&display=swap"); * { margin: 0; padding: 0; box-sizing: border-box; } body { background: #e8eaef; min-height: 100vh; } a { text-decoration: none; } img { max-width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; object-position: top; } section { font-family: "Poppins", sans-serif; font-weight: 300; font-style: normal; padding-block: min(20vh, 5rem); text-align: center; width: calc(min(90rem, 90%)); margin-inline: auto; } section p, section h2, section h3 { letter-spacing: 0.035rem; } section p { line-height: 1.7; color: #454545; max-width: 70rem; margin: 0 auto; font-size: clamp(0.9rem, 0.825rem + 0.3vw, 1.2rem); } section h2 { font-size: clamp(3rem, 2.4286rem + 2.2857vw, 5rem); color: #111; text-transform: capitalize; font-weight: 600; line-height: 1; margin-bottom: 1rem; } section .cards { margin-top: 4rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 2rem; } @med.........完整代码请登录后点击上方下载按钮下载查看
网友评论0