当前位置: 首页 > wzjs >正文

做淘宝客网站营销策划是做什么

做淘宝客网站,营销策划是做什么,舞蹈网页设计素材,在线制作非主流闪光字体Bootstrap V4系列 学习入门教程之 组件-折叠(Collapse) 折叠(Collapse)How it works一、Example二、Horizontal 水平的三、Multiple targets 多个目标四、Accordion example 手风琴示例 折叠(Collapse) 通…

Bootstrap V4系列 学习入门教程之 组件-折叠(Collapse)

  • 折叠(Collapse)
    • How it works
    • 一、Example
    • 二、Horizontal 水平的
    • 三、Multiple targets 多个目标
    • 四、Accordion example 手风琴示例

折叠(Collapse)

通过几个类和我们的JavaScript插件来切换项目中内容的可见性。

How it works

collapse JavaScript插件用于显示和隐藏内容。按钮或锚点用作触发器,映射到您切换的特定元素。折叠元素将使height 高度从其当前值动画化为0。考虑到CSS处理动画的方式,您不能在.collapse 元素上使用padding填充。相反,将类用作独立的包装元素。

一、Example

单击下面的按钮,通过类更改显示和隐藏另一个元素:

  • .collapse hides content (隐藏内容)
  • .collapsing is applied during transitions (在转换过程中应用折叠)
  • .collapse.show shows content (显示内容)

通常,我们建议使用带有data-target属性的按钮。虽然从语义角度来看不建议使用,但您也可以使用带有href属性的链接(以及role=“button”)。在这两种情况下,都需要数据切换data-toggle="collapse"

<!--Example-->
<!--单击下面的按钮,通过类更改显示和隐藏另一个元素-->
<p><a class="btn btn-primary" data-toggle="collapse" href="#collapseExample" role="button" aria-expanded="false" aria-controls="collapseExample">Link with href</a><button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#collapseExample" aria-expanded="false" aria-controls="collapseExample">Button with data-target</button>
</p>
<div class="collapse" id="collapseExample"><div class="card card-body">Some placeholder content for the collapse component. This panel is hidden by default but revealed when the user activates the relevant trigger.</div>
</div>

页面展示效果:

在这里插入图片描述

点击展开(显示内容)后的效果:

在这里插入图片描述

二、Horizontal 水平的

折叠插件还支持水平折叠。添加.width修饰符类以转换宽度而不是高度,并在直接的子元素上设置宽度。

请注意,虽然下面的示例设置了最小高度以避免在我们的文档中过度重新绘制,但这并不是明确要求的。只需要子元素上的宽度。

<!--水平的 Horizontal-->
<p><button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#collapseWidthExample" aria-expanded="false" aria-controls="collapseWidthExample">Toggle width collapse</button>
</p>
<div style="min-height: 120px;"><div class="collapse width" id="collapseWidthExample"><div class="card card-body" style="width: 320px;">This is some placeholder content for a horizontal collapse. It's hidden by default and shown when triggered.</div></div>
</div>

页面展示效果:

在这里插入图片描述

点击展开(显示内容)后的效果:
在这里插入图片描述

三、Multiple targets 多个目标

<button><a>可以通过在其hrefdata-target属性中使用JQuery选择器引用多个元素来显示和隐藏它们。多个<button><a>可以显示和隐藏一个元素,如果它们各自用hrefdata-target属性引用它

<!--Multiple targets-->
<p><a class="btn btn-primary" data-toggle="collapse" href="#multiCollapseExample1" role="button" aria-expanded="false" aria-controls="multiCollapseExample1">Toggle first element</a><button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#multiCollapseExample2" aria-expanded="false" aria-controls="multiCollapseExample2">Toggle second element</button><button class="btn btn-primary" type="button" data-toggle="collapse" data-target=".multi-collapse" aria-expanded="false" aria-controls="multiCollapseExample1 multiCollapseExample2">Toggle both elements</button>
</p>
<div class="row"><div class="col"><div class="collapse multi-collapse" id="multiCollapseExample1"><div class="card card-body">Some placeholder content for the first collapse component of this multi-collapse example. This panel is hidden by default but revealed when the user activates the relevant trigger.</div></div></div><div class="col"><div class="collapse multi-collapse" id="multiCollapseExample2"><div class="card card-body">Some placeholder content for the second collapse component of this multi-collapse example. This panel is hidden by default but revealed when the user activates the relevant trigger.</div></div></div>
</div>

页面展示效果:
在这里插入图片描述
点击展开1(显示内容)后的效果:

在这里插入图片描述
点击展开2(显示内容)后的效果:
在这里插入图片描述
点击展开1和2(显示内容)后的效果:
在这里插入图片描述

四、Accordion example 手风琴示例

使用卡片组件,可以扩展默认折叠行为以创建手风琴。要正确实现手风琴风格,一定要使用.accordion作为包装。

<!--手风琴示例 Accordion example-->
<div class="accordion" id="accordionExample"><div class="card"><div class="card-header" id="headingOne"><h2 class="mb-0"><button class="btn btn-link btn-block text-left" type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">Collapsible Group Item #1</button></h2></div><div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionExample"><div class="card-body">Some placeholder content for the first accordion panel. This panel is shown by default, thanks to the <code>.show</code> class.</div></div></div><div class="card"><div class="card-header" id="headingTwo"><h2 class="mb-0"><button class="btn btn-link btn-block text-left collapsed" type="button" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">Collapsible Group Item #2</button></h2></div><div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionExample"><div class="card-body">Some placeholder content for the second accordion panel. This panel is hidden by default.</div></div></div><div class="card"><div class="card-header" id="headingThree"><h2 class="mb-0"><button class="btn btn-link btn-block text-left collapsed" type="button" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">Collapsible Group Item #3</button></h2></div><div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#accordionExample"><div class="card-body">And lastly, the placeholder content for the third and final accordion panel. This panel is hidden by default.</div></div></div>
</div>

页面展示效果:

在这里插入图片描述
点击展开2(显示内容)后的效果:

在这里插入图片描述
点击展开3(显示内容)后的效果:

在这里插入图片描述

http://www.dtcms.com/wzjs/137838.html

相关文章:

  • php网站做退出的代码网站收录一键提交
  • espcms易思企业网站搜索引擎优化文献
  • 17网一起做网店广州货源网seo营销网站
  • 做类似58同城大型网站seo快速排名外包
  • 如何做网站logo 设置平滑免费网站外链推广
  • 网站死链接怎么处理百度推广投诉中心
  • 柳州网站建设22谷歌广告联盟官网
  • 杭州专业网站设计制作2022最新国际新闻10条简短
  • 手机网站建设维护协议书时事热点新闻
  • 威海高新园区建设运营有限公司网站免费申请网站
  • 北京seo代理公司seo优化排名
  • 网站建设协议 模板今日发生的重大新闻
  • 广西平台网站建设报价微博搜索引擎优化
  • 请被人做网站百度问一问付费咨询
  • 长沙网络工程学院轻松seo优化排名 快排
  • 衡水做网站多少钱注册网址在哪里注册
  • js动效网站免费招聘信息发布平台
  • 建设三轮摩托车官方网站网络营销优秀案例
  • 百度山西授权代理重庆seo教程搜索引擎优化
  • 在哪个网站做引号流最好打开百度一下
  • 南昌网站建设工作室百度引擎搜索
  • 国外公共空间设计网站免费推广seo
  • 兰州网络推广专员衡阳网站优化公司
  • 绍兴网站制作建设网店代运营商
  • 中国建设银行官网站纪念币预约高质量内容的重要性
  • 人员调动在网站上怎么做站长工具app
  • 北京西站在几环陕西百度推广的代理商
  • 如何做招生网站枫树seo网
  • 做网站的开题报告怎么写小程序开发模板
  • 广州力yang网站建设搜资源