bootstrap轮播中的幻灯片类在哪里 [英] Where is slide class in bootstrap carousel

查看:119
本文介绍了bootstrap轮播中的幻灯片类在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计,



在网上找到的所有演示和示例中,包含旋转木马的div显示了旋转木马幻灯片的类别:



Folks,

In all demos and examples I have found on the web the containing div for carousels shows a class assignnent of carousel slide:

<div id="myCarousel" class="carousel slide">





然而,当在aspx页面中创建它时,该方被标记为未知的Css类事实上,我无法在任何bootstrap css文件或js文件中找到它。然而,我离开它然后旋转木马不滑动它只是按顺序跳到每个旋转木马项目。我是否担心错误信息?



我尝试过的事情:



大量的演示和教程perused



However when creating this in an aspx page the side is marked as unknown Css class and in fact I cannot find it defined in any of the bootstrap css files or js files. Yet is I leave it off then the carousel does not slide it just jump to each carousel item in sequence. Am I worrying to much about the error message?

What I have tried:

Tons of demos and tutorial perused

推荐答案

它不作为CSS类存在;它仅用作Bootstrap脚本的标记来切换滑动行为。



您可以看到Javascript检查存在的位置在源代码中滑动类:

master的bootstrap / carousel.js·twbs / bootstrap [ ^ ]
It doesn't exist as a CSS class; it's only used as a marker for the Bootstrap script to toggle the sliding behaviour.

You can see where the Javascript checks for the presence of the slide class in the source code:
bootstrap/carousel.js at master · twbs/bootstrap[^]


这篇关于bootstrap轮播中的幻灯片类在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆