Bootstrap Beginner FAQs

Source: Internet
Author: User

Preface

Bootstrap this open source UI library is really convenient, with two days, feel good, but there are some problems more headache!

Theme

1, how to use? How to customize? Here is an example that modifies the color of the navbar and re-sets the default length of the Select control

<link href= ". /static/bootstrap/css/bootstrap.css "rel=" stylesheet "/>
<script src= ". /static/bootstrap/js/bootstrap.min.js "/>
<style>
Body {
padding-top:45px;
}
. navbar-inverse. Navbar-inner {
Background: #0C7854;
Background-image:-webkit-linear-gradient (Top, #0D8059, #0B6E4D);
}
. navbar. Nav > li > a {
Color: #DDD;
}
. navbar. Nav. Active > A,. navbar. Nav. Active > A:hover {
Background-color: #0B6E4D;
}

. Navbar-inner. brand{
Color: #ffffff;
}

select{
Width:auto;
}
</style>

2, the public HTML parts extracted, as a template introduced, such as NavBar, etc.

$. Get (".. /common/head.html ", function (data) {
$ ("#floatDiv"). HTML (data);
});
<div class= "NavBar navbar-inverse navbar-fixed-top" id= "Floatdiv" ></div>

Bootstrap Beginner FAQs

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.