css实现自适应响应式图文卡片排列效果代码

代码语言:html

所属分类:响应式

代码描述:css实现自适应响应式图文卡片排列效果代码

代码标签: css 自适应 响应式 图文 卡片 排列

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">






    <style>
        section.card {
          background: #f6f6f6;
          border-radius: 24px 24px 24px 48px;
          padding: 48px 48px 48px 308px;
          margin: 84px 0;
          width: 60vw;
          max-width: 920px;
          min-width: 640px;
          display: flex;
          flex-direction: row;
          align-self: flex-start;
          position: relative;
          box-shadow: 5px 0 0 0 rgba(204, 204, 204, 0.3), -5px 0 0 0 rgba(204, 204, 204, 0.3), 0 5px 0 0 rgba(204, 204, 204, 0.3);
        }
        section.card .text-content {
          display: flex;
          flex-direction: column;
          width: calc(60vw - 192px);
        }
        section.card .text-content h3 {
          margin: 0;
          font-size: 1.5em;
          max-width: 20ch;
        }
        section.card .text-content p {
          margin: 16px 0 24px;
          max-width: 36ch;
        }
        section.card .text-content a {
          border: 3px solid #000;
          color: #000;
          align-self: flex-start;
          text-decorati.........完整代码请登录后点击上方下载按钮下载查看

网友评论0