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

前端之家收集整理的这篇文章主要介绍了javascript – 无法专注于Bootstrap Carousel中的输入字段前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

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

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

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

  1. $(document).ready(function(){
  2. $(".carousel").swipe({
  3. swipe: function(event,direction,distance,duration,fingerCount,fingerData) {
  4. if (direction == 'left') $(this).carousel('next');
  5. if (direction == 'right') $(this).carousel('prev');
  6. },allowPageScroll:"vertical"
  7. });
  8. });
  1. .carousel-indicators {
  2. position: absolute !important;
  3. bottom: -100px !important;
  4. }
  5. .carousel-indicators li {
  6. background-color: green;
  7. border: 1px solid green !important;
  8. }
  9. .carousel-inner>.item>div {
  10. padding: 30px;
  11. }
  12. .carousel-inner>.item>div>div {
  13. text-align: center;
  14. }
  1. Box">
最佳答案
将touchSwipe版本从1.6.18更改为1.6.4

猜你在找的HTML相关文章