精华内容
下载资源
问答
  • 2022-04-11 13:32:04

    下载地址

    一组漂亮的图文卡片式布局代码,基于Bootstrap4框架的扩展,一共有八种不同的卡片样式效果。主要特色响应式布局很容易自定义8种卡片样式Bootstrap4框架纯CSS3代码时尚的设计

    1631199553.png

    dd:

    更多相关内容
  • 基于jQuery和Bootstrap实现的卡片图文列表布局样式代码,包括普通的卡片布局、等高卡片布局等。
  • bootstrap卡片图文列表布局代码是一款基于jQuery跟Bootstrap实现的3种列表布局样式代码。
  • bootstrap 卡片card图片布局

    千次阅读 2022-02-22 11:48:01
    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="Content-Type" content="multipart/form-data; charset=utf-8" />...link rel="stylesheet" ...

     

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="Content-Type" content="multipart/form-data; charset=utf-8" />
        <title>热卖商品分析-xxx热卖单品 V1.0.1</title>
        <link rel="stylesheet" href="../../css/bootstrap.css"/>
        <link rel="stylesheet" href="../../css/bootstrapValidator.css"/>
    
        <script type="text/javascript" src="../../js/jquery.min.js"></script>
        <script type="text/javascript" src="../../js/bootstrap.min.js"></script>
        <script type="text/javascript" src="../../js/bootstrapValidator.js"></script>
    
        <style type="text/css">
            .modal-header{
                padding: 0;
            }
            .div-main h3{
                font-size: 14px;
                height:42px;
                line-height: 42px;
                margin: 0;
                padding: 0 80px 0 20px;
            }
            .div-main label{
                margin-left: 0;
                font-weight: 400;
            }
            .div-main {
            }
            .form-control{
                width: 100px;
            }
            .modal-content{
                max-height: 15000px;
                height: auto;
            }
            .form-inline{
                margin-left: 30px;
            }
            .container-item{
                margin-left: 20px;
                margin-right: 20px;
            }
            .list-inline{
                margin-left: 30px;
            }
            .font-item{
                font-size: 13px;
            }
            .img-item{
                width: 203px;
            }
            .li-item{
                cursor: pointer;
                width: 222px;
                height: 300px;
                margin-left: 10px;
            }
            .card {
                margin-left: 10px;
            }
            .div-img{
                height: 100%;
                width: 100%;
                float: left;
                margin-bottom: 10px;
            }
            .span-sale{
                margin-left: 80px;
            }
            .p-desc {
                border: 1px;
                line-height: 30px;
                height: 60px;
                max-height: 60px;
                overflow: hidden;/* 超出的文本隐藏 */
                text-overflow: ellipsis; /* 溢出用省略号显示 */
                display: -webkit-box; /* 将对象作为弹性伸缩盒子模型显示 */
                -webkit-box-orient: vertical; /* 这个属性不是css的规范属性,需要组合上面两个属性,表示显示的行数 */
                -webkit-line-clamp: 2; /*  从上到下垂直排列子元素(设置伸缩盒子的子元素排列方式) */
            }
        </style>
    </head>
    <body>
    <!--模态框-->
    <div class="div-main">
        <div class="modal-content">
    
            <form id="formId" class="form-inline" role="form" action="/selenium/getskwsalebyclass" method="post">
                <div class="modal-header">
                    <h3>商品分析-xxx热卖单品</h3>
                </div>
    
                <div class="modal-body">
                    <div class="form-group">
                        <label class="sr-1" for="goodsClassId">品类:</label>
                        <select class="form-control" id="goodsClassId" name="goodsClass" onchange="selectOnChang(this)">
                            <option value="连衣裙">连衣裙</option>
                            <option value="衬衫">衬衫</option>
                        </select>
                    </div>
                </div>
            </form>
    
            <div class="container-item" id="mainContentDiv">
                <ul class="list-inline" id="mainContentUl">
                    <li class="li-item">
                        <div class="card">
                            <div class="div-img">
                                <img class="card-img-top img-item" src="https://img1.vvic.com/upload/1634153146192_501848.png?x-oss-process=image/resize,mfit,h_230,w_230" alt="加载中">
                            </div>
                            <div class="card-body">
                                <h5 class="card-title font-item">
                                    <span>¥60</span>
                                    <span class="span-sale">销量:129561</span>
                                </h5>
                                <p class="card-text font-item p-desc">实拍 刺绣两件套连衣裙</p>
                            </div>
                        </div>
                    </li>
                    <li class="li-item">
                        <div class="card">
                            <div class="div-img">
                                <img class="card-img-top img-item" src="https://img1.vvic.com/upload/1634153146192_501848.png?x-oss-process=image/resize,mfit,h_230,w_230" alt="加载中">
                            </div>
                            <div class="card-body">
                                <h5 class="card-title font-item">
                                    <span>¥60</span>
                                    <span class="span-sale">销量:129561</span>
                                </h5>
                                <p class="card-text font-item p-desc">实拍2021新款春夏季裙子碎花连衣裙女装复古法式显瘦a字小个子</p>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    
    <script type="text/javascript">
        
        $(
            console.log("$.in")
        );
        
        function selectOnChang(obj) {
            // 构造请求参数
            var goodsClass = obj.options[obj.selectedIndex].value;
            var dataValue = {};
            dataValue.goodsClass = goodsClass;
            var dataParam = {};
            dataParam.data = dataValue;
            dataParam.data = JSON.stringify(dataValue);
    
            $.ajax({
                url: "/selenium/getskwsalebyclass",
                type: "POST",
                contentType: "application/x-www-form-urlencoded",
                data: dataParam,
                success:function (message) {
                    var retJson = JSON.parse(message);
                    console.log(retJson);
                    var flag = retJson['flag'];
                    var total = retJson['total'];
                    var mainContentDiv = $("#mainContentUl");
                    mainContentDiv.empty();
                    if(flag && total > 0){
                        console.log("获取数据成功!");
                        var dataArray = retJson['data'];
                        for(var index in dataArray){
                            var subJson = dataArray[index];
                            var name = subJson['itemName'];
                            var url = subJson['itemPicUrl'];
                            var price = subJson['showPrice'];
                            var sale = subJson['itemSale'];
                            var liStr = "                <li class=\"li-item\">\n" +
                                "                    <div class=\"card\">\n" +
                                "                        <div class=\"div-img\">\n" +
                                "                            <img class=\"card-img-top img-item\" src=\""+url+"\" alt=\"加载中\">\n" +
                                "                        </div>\n" +
                                "                        <div class=\"card-body\">\n" +
                                "                            <h5 class=\"card-title font-item\">\n" +
                                "                                <span>¥"+price+"</span>\n" +
                                "                                <span class=\"span-sale\">销量:"+sale+"</span>\n" +
                                "                            </h5>\n" +
                                "                            <p class=\"card-text font-item\">"+name+"</p>\n" +
                                "                        </div>\n" +
                                "                    </div>\n" +
                                "                </li>";
                            mainContentDiv.append(liStr);
                        }
                    }else{
                        console.log("未获取到数据!");
                        mainContentDiv.append("未获取到数据!");
                    }
                },
                error:function (message) {
                    console.log("提交失败"+JSON.stringify(message));
                }
            });
        }
    
    </script>
    
    </body>
    </html>
    

    展开全文
  • bootstrap卡片图文列表布局代码是一款基于jQuery跟Bootstrap实现的3种列表布局样式代码。代码结构1. 引入CSS2. 引入JS3. HTML代码普通的卡片布局Card titleSome quick example text to build on the card title and ...

    特效描述:基于bootstrap 卡片图文列表 布局样式。bootstrap卡片图文列表布局代码是一款基于jQuery跟Bootstrap实现的3种列表布局样式代码。

    代码结构

    1. 引入CSS

    2. 引入JS

    3. HTML代码

    普通的卡片布局

    Card image cap

    Card title

    Some quick example text to build on the card title and make up the bulk of the card's content.

    Go somewhere

    Card image cap

    Card title

    Some quick example text to build on the card title and make up the bulk of the card's content. Some quick example text to build on the card title and make up the bulk of the card's content. Some quick example text to build on the card title and make up the bulk of the card's content.

    Go somewhere

    Card image cap

    Card title Card title Card title Card title Card title Card title

    Some quick example text to build on the card title and make up the bulk of the card's content.

    Go somewhere

    等高卡片布局

    Card image cap

    Card title

    Some quick example text to build on the card title and make up the bulk of the card's content.

    Go somewhere

    Card image cap

    Card title

    Some quick example text to build on the card title and make up the bulk of the card's content. Some quick example text to build on the card title and make up the bulk of the card's content. Some quick example text to build on the card title and make up the bulk of the card's content.

    Go somewhere

    Card image cap

    Card title Card title Card title Card title Card title Card title

    Some quick example text to build on the card title and make up the bulk of the card's content.

    Go somewhere

    Cards With Equal Height and Text

    Card image cap

    Card title

    Some quick example text to build on the card title and make up the bulk of the card's content.

    Go somewhere

    Card image cap

    Card title

    Some quick example text to build on the card title and make up the bulk of the card's content. Some quick example text to build on the card title and make up the bulk of the card's content. Some quick example text to build on the card title and make up the bulk of the card's content.

    Go somewhere

    Card image cap

    Card title Card title Card title Card title Card title Card title

    Some quick example text to build on the card title and make up the bulk of the card's content.

    Go somewhere

    标题和文字高度相等的等高卡片布局

    Card image cap

    Card title

    Some quick example text to build on the card title and make up the bulk of the card's content.

    Go somewhere

    Card image cap

    Card title

    Some quick example text to build on the card title and make up the bulk of the card's content. Some quick example text to build on the card title and make up the bulk of the card's content. Some quick example text to build on the card title and make up the bulk of the card's content.

    Go somewhere

    Card image cap

    Card title Card title Card title Card title Card title Card title

    Some quick example text to build on the card title and make up the bulk of the card's content.

    Go somewhere

    function equal_height() {

    // Equal Card Height

    $('.jQueryEqualHeight1').jQueryEqualHeight();

    // Equal Card Height and Text Height

    $('.jQueryEqualHeight2').jQueryEqualHeight('.card .card-body .card-text');

    $('.jQueryEqualHeight2').jQueryEqualHeight('.card');

    // Equal Card Height, Text Height and Title Height

    $('.jQueryEqualHeight3').jQueryEqualHeight('.card .card-body .card-title');

    $('.jQueryEqualHeight3').jQueryEqualHeight('.card .card-body .card-text');

    $('.jQueryEqualHeight3').jQueryEqualHeight('.card');

    }

    $(window).on('load', function(event) {

    equal_height();

    });

    $(window).resize(function(event) {

    equal_height();

    });

    适用浏览器:360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. 不支持IE8及以下浏览器。

    来源:站长素材

    展开全文
  • bootstrap卡片图文列表布局代码是一款基于jQuery跟Bootstrap实现的3种列表布局样式代码。
  • md={4} 代表每行显示4个卡片 g-2 代表卡片间的间距 import React, { useState, useEffect } from 'react'; import { Container, Row, Col, Stack, Form, Button, Alert, ToggleButtonGroup, ...

     md={4} 代表每行显示4个卡片

    g-2 代表卡片间的间距

    import React, { useState, useEffect } from 'react';
    import {
      Container,
      Row,
      Col,
      Stack,
      Form,
      Button,
      Alert,
      ToggleButtonGroup,
      ToggleButton,
      ButtonToolbar,
      ButtonGroup,
      InputGroup,
      FormControl,
      Dropdown,
      DropdownButton,
      Card,
    } from 'react-bootstrap';
    
    function LoadingButton() {
      const [value, setValue] = useState([1, 3]);
    
      /*
       * The second argument that will be passed to
       * `handleChange` from `ToggleButtonGroup`
       * is the SyntheticEvent object, but we are
       * not using it in this example so we will omit it.
       */
      const handleChange = (val) => setValue(val);
    
      return (
        <div className="m-test-wrap">
          <Row md={4} className="g-2">
            {Array.from({ length: 8 }).map((_, idx) => (
              <Col key={idx}>
                <Card>
                  <Card.Body>
                    <Card.Title>Card title{idx + 1}</Card.Title>
                    <Card.Text>
                      This is a longer card with supporting text below as a natural
                      lead-in to additional content. This content is a little bit
                      longer.
                    </Card.Text>
                  </Card.Body>
                </Card>
              </Col>
            ))}
          </Row>
        </div>
      );
    }
    
    export default LoadingButton;
    

     

    展开全文
  • BootStrap 卡片

    2022-05-08 20:27:53
    1.卡片作为一个新式引入到BootStrap 4中,可能样式、标记和扩展属性不会很多(未来会不断扩充发展),但它仍然可以提供许多控制项和定义方法,由于我们使用了flex弹性布局,使得它们可以轻松对齐、并方便的与其它...
  • bootstrap4中超大屏幕、卡片、折叠、下拉菜单的设置
  • Bootstrap -Card卡片

    万次阅读 2019-05-08 13:57:29
    Cards(卡片Bootstrap 提供了一个可伸缩可扩展的内容容器给多种变量和选择。 关于 卡片是一个灵活的、可扩展的内容容器。它包括用于页眉和页脚的选项、各种各样的内容、上下文背景颜色和强大的显示选项。如果您...
  • bootstrap 组件之卡片总结

    千次阅读 2020-05-24 22:28:24
    card 在bootstrap3.x的版本是没有, 在bootstrap4.x里面才会有 card支持自动响应式 使用类名card 来标记为card 使用方法: <div class="container"> <div class="row"> <div class="col-lg-4"&...
  • Bootstrap商品图片网格布局代码是一款基于bootstrap响应式框架制作商城商品图片网格列表布局,鼠标悬停图片滑动显示快捷小功能。
  • Bootstrap-Bootstrap官网卡片响应式布局

    千次阅读 2017-10-18 08:18:00
    描述:bootstrap 中文网 布局排列 --> < style type = "text/css" > .container .items { border : 1 px solid #EEEEEE ; padding : 10 px ; margin-bottom : 15 px ; } style > < div ...
  • 卡片card 示例1: <!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-...
  • 目录1、简介2、示例3、内容类型3.1、Body3 .2、标题、文本和链接3.3、图像3.4、列表组3.5、Kitchen sink3.6、页眉和页脚4、Sizing4.1、使用网格标记4.2、使用工具4.3、使用自定义的...Bootstrap卡片提供了一个灵活的、
  • Bootstrap组件——卡片

    千次阅读 2020-07-29 16:01:39
    卡片一、卡片(card)1.基础卡片2.内容类型2.宽度设置3.文本对齐4.导航5. 图像6.文本放在图片身上7.水平排列8.卡片样式9.卡片组 一、卡片(card) 卡片是一个灵活的、可扩展的内容窗口,同时可以做出多种展示效果...
  • 这是一款基于Bootstrap的网格布局和列表布局切换特效。该特效通过jQuery来为元素切换不同的class类,来将布局显示为网格布局或列表布局
  • 一、下面我将简单的介绍移动端布局的八种方式:1.固定布局2.流动布局3.浮动布局4.定位布局5.混合布局6.flex布局7.rem布局8.响应式布局9.**圣杯布局10.**双飞翼布局1.固定布局方法里把加好,然后根据设计稿设定相应的...
  • Bootstrap布局知识点、栅格系统自适应布局 栅格布局基本的概念在这就不多介绍 1、Container和Container-fluid的区别 (1)Container:内容居中,左右两边为空 (2)Container-fluid:内容占满整个屏幕 2、col和col-...
  • 23种Bootstrap导航菜单布局设计jQuery插件
  • 这是一款CSS3商城购物卡片布局动画特效。该特效使用Bootstrap来进行网格布局,然后通过css3来实现鼠标悬停时的动画特效,效果非常炫酷。
  • 卡片bootstrap4加入的,操作非常容易,重点要说的是卡片排版,我觉得非常有用,所以需要记录下,方便复习。 作用场景 在bootstrap4中卡片提供一套实用的样式,这套样式在网页中非常常见。 上图中图片与文字搭配的...
  • bootstrap卡片

    2020-02-16 10:13:52
    卡片一种可伸缩可扩展的容器 ##卡片的设置 div.card 容器 (div.card指 div 容器加上class 下面文章不在声明) div.card-body 容器 父级是.card h*.card-title 卡片标签 可放在.card也可以放cark-body中 (h* 指 h1...
  • [技术博客]采用Bootstrap框架进行排版布局网页的前端框架有很多很多种,比如Bootstrap、Vue、Angular等等,在最开始其实并没有考虑到框架这回事,开始阅读往届代码时发现其部分采用了Bootstrap框架,因此决定沿用...
  • 前面说了Bootstrap4的下载和简单使用,现在我们接着往下学习,Bootstrap4的响应式布局主要依靠栅格系统来实现的。面老K先来讲解一下Bootstrap4的栅格系统,让你能够更快的了解Bootstrap4.(PS:更详细的介绍请访问原K...
  • 这是一款效果非常炫酷的...使用方法HTML结构该动态网格卡片布局的HTML结构基于Bootstrap网格系统来实现。使用时要引入Bootstrap相关文件。CSS样式该动态网格卡片布局的CSS样式非常简单,首先带有以col- 开头的c...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 1,946
精华内容 778
关键字:

bootstrap卡片布局