加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 资源网站 > 资源 > 正文

javascript – 无法专注于Bootstrap Carousel中的输入字段

发布时间:2020-12-14 22:40:37 所属栏目:资源 来源:网络整理
导读:我无法专注于bootstrap轮播中的任何输入字段. 无论您点击多少次,输入字段都不会聚焦. 我甚至尝试将z-index赋予输入字段,但它仍然没有得到集中. 您可以通过运行下面的代码段来检查错误. $(document).ready(function(){$(".carousel").swipe({ swipe: function

我无法专注于bootstrap轮播中的任何输入字段.

无论您点击多少次,输入字段都不会聚焦.

我甚至尝试将z-index赋予输入字段,但它仍然没有得到集中.

您可以通过运行下面的代码段来检查错误.

$(document).ready(function(){

$(".carousel").swipe({

  swipe: function(event,direction,distance,duration,fingerCount,fingerData) {

    if (direction == 'left') $(this).carousel('next');
    if (direction == 'right') $(this).carousel('prev');

  },allowPageScroll:"vertical"

});

});
.carousel-indicators {
  position: absolute !important;
  bottom: -100px !important;
}

.carousel-indicators li {
  background-color: green;
  border: 1px solid green !important;
}

.carousel-inner>.item>div {
  padding: 30px;
}

.carousel-inner>.item>div>div {
  text-align: center;
}

最佳答案
将touchSwipe版本从1.6.18更改为1.6.4

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读