限时优惠活动
亲爱的苦力吧用户,我们为了回馈新老用户一直以来的鼎力支持,即日起(2025-02-06至2025-03-06)凡是购买苦力吧VIP/充值K币的新老用户,都直接可获得买一送一的优惠馈赠。例如:购买一个月的VIP会员可直接获得两个月的VIP会员;充值100K币可直接获得200K币,以此类推!有任何疑问可联系在线客服,感谢各位用户对苦力吧素材的信任与厚爱,我们将一如既往的给大家上新更多优质的素材源码,祝大家开工大吉、工作顺利、心想事成。

基于css实现的响应式产品图文信息展示卡片

所属分类: 网页特效-其它&杂项    2023-12-10 11:30:35

基于css实现的响应式产品图文信息展示卡片 ie兼容6
 查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

基于css实现的响应式产品图文信息展示卡片(共4个文件)

    • product.jpg
    • product2.jpg
    • index.html

使用方法

body {
    background-color: hsl(30, 38%, 92%);
    font-family: PingFang SC,Microsoft YaHei,sans-serif;
}

.cd__main{
   position: relative;
   display: block !important;
   min-height: 720px;
     background: linear-gradient(to right, #a8ff78, #78ffd6) !important;
}
  
.container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 600px;
    height: 450px;
    background-color: white;
    border-radius: 10px;
}

.left-side {
    background-image: url(../product.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 10px 0px 0px 10px;
}

.right-side {
    margin: 20px 32px 32px 32px;
}

#perfume {
    font-size: 12px;
    letter-spacing: 5px;
    color: hsl(228, 12%, 48%);
}

#header {
    font-family: PingFang SC,Microsoft YaHei,sans-serif;
    line-height: 1;
    color: hsl(212, 21%, 14%);
    margin: 25px auto;
}

#description {
    font-size: 14px;
    color: hsl(228, 12%, 48%);
    line-height: 1.8;
    margin-bottom: 5px;
    margin-top: 20px
}


#number-discount, #number-full {
    display: inline-block;
    vertical-align: middle;
}

#number-discount {
    color: hsl(158, 36%, 37%);
    font-family: 'Fraunces', serif;
    margin-right: 10px;
}

#number-full {
    font-size: 14px;
    color: hsl(228, 12%, 48%);
    text-decoration: line-through;
}

.cart-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: none;
    background-color: hsl(158, 36%, 37%);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    transition: background-color 0.2s;
    margin-top: 40px
}

.cart-btn:hover {
    background-color: hsl(156, 42%, 18%);
    cursor: pointer;
}

.cart-btn > svg {
    margin-left: -8px;
}

@media only screen and (max-width: 767px) {
    .container {
      grid-template-columns: 1fr;
      width: 345px;
      height: 610px;
    }

    .left-side {
        background-image: url(../product2.jpg);
        height: 240px;
        border-radius: 10px 10px 0 0;
    }

    #perfume {
        margin-top: 5px;
        margin-bottom: -10px;
    }

    #description {
        margin-top: -8px;
        margin-bottom: -1px;
    }

    .price {
        margin-bottom: -8px;
    }

    .cart-btn {
        height: 48px;
    }
  }

站长提示:
1. 苦力吧素材官方QQ群:950875342
2. 平台上所有素材资源,需注册登录会员方能正常下载。
3. 会员用户积极反馈网站、素材资源BUG或错误问题,每次奖励2K币
4. PHP源码类素材,如需协助安装调试,或你有二次开发需求,可联系苦力吧客服。
5. 付费素材资源,需充值后方能下载,如有任何疑问可直接联系苦力吧客服
相关资源 / 其它&杂项

jquery自定义动态设置文本内容中链接参数插件

Externalize是一个轻量级的文本链接自定义插件,它可动态设置文本内容中链接的Name、Relation、Target和Title属性。
  其它&杂项
 2274  0

jquery仿安卓手机页面底部弹出的提示信息

一款可关闭的提示信息插件,默认5秒钟后自动消失关闭,也可以手动点击关闭。
  其它&杂项
 5122  0

jquery可拖拽触摸的DIV元素移动到另一个元素上触发事件代码

一款可拖动小部件插件,可通过鼠标拖动或触摸移动事件检测可拖动对象何时移动到另一个对象上。
  其它&杂项
 5335  0

jquery响应式侧边栏固定悬浮可见特效代码

sidebarFix.js是一个轻量级侧边栏插件,在页面滚动时,右侧边栏模块始终可见。
  其它&杂项
 8312  0

评论数(3) 回复有机会获得K币 用户协议

    何处不逢杨0
    2024-01-04 23:32:04
    不错刚好用到哦,感谢苦力吧
    回复 1
    xiaoshenzhen0
    2023-12-15 13:31:49
    这种响应式布局怎么做的,感觉好神奇😕
        jq小菜鸡
        2023-12-18 12:10:00
        根据分辨率来设置最大宽度和最小高度,然后各种百分比设置
    回复 2
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论