簡體   English   中英

BootStrap Jumbotron寬度

[英]BootStrap Jumbotron width

我有一個覆蓋整個頁面的巨型引導程序寬度。 我想實現一種不覆蓋整個頁面的樣式。 我可以應用任何可以調整寬度的屬性嗎?

/* style -- this is the stylesheet */

.jumbotron {
    font-size: 17px;
    cursor: pointer;
    width: 5px;
}

 .mycustom-jumbotron { border:10px solid #003366; width: 300px; margin: 0 auto } 
 <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> <div class="jumbotron mycustom-jumbotron text-center"> <h1>Bootstrap</h1> <p>Bootstrap Web Design</p> </div> 

 .jumbotron-test { font-size: 17px; cursor: pointer; width: 50%; text-align:Center; } 
 <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> <div class="jumbotron jumbotron-test"> <h1>Jumbotron</h1> <p>Testing Jumbo tron</p> </div> 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM