swiper+css实现响应式步骤图文卡片幻灯片效果代码

代码语言:html

所属分类:幻灯片

代码描述:swiper+css实现响应式步骤图文卡片幻灯片效果代码,在宽屏全部显示出来,在手机端等窄屏显示幻灯片轮播,可左右拖拽切换。

代码标签: swiper 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/swiper-bundle.11.0.4.css">
  
<style>
* {
	margin: 0;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	font-family: "Inter", sans-serif;
	background-color: #f5f5f5;
	color: #1a1a1a;
}

.wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

.section {
	width: 100%;
	max-width: 940px;
	padding: 40px 16px;
	text-align: center;
}

.section-title {
	font-size: 1.8rem;
	line-height: 1.2;
	font-weight: 700;
	margin-bottom: 8px;
}

.section-desc {
	color: #555;
	font-size: 1rem;
	line-height: 1.5;
	margin-bottom: 40px;
}

.card-wrapper {
	position: relative;
}

.card {
	--r: 30px; /* radius */
	--s: 40px; /* inner curve size */
	background-color: #fff;
	padding: 24px;
	width: 100%;
	text-alig.........完整代码请登录后点击上方下载按钮下载查看

网友评论0