Every day, Bootstrap must learn the responsive navigation and carousel fig _ javascript skills

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.