Every day, Bootstrap must learn about responsive navigation and carousel images. The main content of this article is to make a carousel image below the navigation bar to automatically play the latest important news, if you are interested, refer to the first project, an enterprise website of an internal training company, and the responsive navigation section.
Basic navigation components + response:
// Basic navigation component + response
Switch navigation
- Homepage
- Information
- Case
- About
In the next section, we will create a carousel image below the navigation bar to automatically play the latest important news.
// Response carousel
Upper ‹›
// The required jQuery control $ ('# my‑usel '). carousel ({// set automatic playback/2 seconds interval: 3000,}); // adjust the live position of the caster ('.w.usel-control').css ('line-height', $ ('. invalid usel-innerimg '). height () + 'px '); $ (window ). resize (function () {var $ height = $ ('. invalid usel-inner img '). eq (0 ). height () | $ ('. invalid usel-inner img '). eq (1 ). height () | $ ('. invalid usel-inner img '). eq (2 ). height (); condition ('.w.usel-control').css ('line-height', $ height + 'px ');});
// The required CSSa: focus {outline: none ;}. navbar-brand {padding: 0 ;}# mydomainusel {margin: 50px 0 0 0 ;}. invalid usel-inner. item img {margin: 0 auto ;}. carousel-control {font-size: 100px ;}
For more information, see the Bootstrap tutorial.
The above is all of the content in this article. I hope it will help you learn about Bootstrap program design.