Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem that bootstrap rotation is too slow

Shulou Source: shulou.com Published: 2022-06-03 10:56:36 10月27日 Update

This article mainly introduces how to solve the problem of bootstrap rotation is too slow, the article is very detailed, has a certain reference value, interested friends must read it!

Bootstrap is a very easy to use css framework, which integrates the typesetting and special effects commonly used in various pages, and picture rotation is one of them.

To modify the time interval of picture rotation, of course, directly modifying the source code is not recommended, the method is actually very simple.

Official Code of BootStrap broadcast Picture

...

...

...

...... Previous Next

Two ways to realize the change of time interval of rotation Graph

Add an attribute data-interval= "millisecond" after data-ride, where millisecond is the number of milliseconds to be set, as follows:

Use a JavaScript statement to implement:

The code given on the official website is:

(function () {$('# carousel-example-generic'). Carousel ({interval:1000});}). The above is all the content of the article "how to solve the problem of slow bootstrap rotation". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Questions code content pictures time articles values interests officials guys buddies that is attributes ways methods more frameworks source code special effects knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Shulou Tech Info NVidia Apple Redmi