html卡片布局样式,基于bootstrap卡片图文列表布局样式

本文介绍了一种基于Bootstrap实现的卡片图文列表布局样式,包括普通的卡片布局、等高卡片布局以及标题和文字高度相等的等高卡片布局。通过引入CSS和JS,结合jQuery插件,可以实现不同卡片内容的等高显示,适用于多种浏览器,但不支持IE8及以下版本。

特效描述:基于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及以下浏览器。

来源:站长素材

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值