我已經嘗試了一切,到處搜索。但似乎沒有任何工作。 這是一個很容易解決的問題,我想,我只是沒有單獨到達那裏。Jumbotron背景圖片
我想在我的jumbotron上設置一個背景圖像,因爲我使用的是引導程序。
這是我做的。
<div class="jumbotron center " > <!-- start jumbotron -->
<div class="container">
<div class="jb-text">
<h1>This is an epic service</h1>
<h3>Not really, just trying this thing out</h3>
</div>
<button class="btn btn-default" id="btn-custom"><a href="#">Start Your <strong>Free</strong> Trial</a></button>
</div> <!-- end container -->
</div> <!-- end jumbotron -->
這是CSS
.jumbotron{
background-image: url('image/green-forest.jpg') no-repeat center center;
}
遺憾的是沒有任何反應。
我覺得這是一個noob,但我是新手。
我向那,
埃德
是的!真奇怪。我做錯了什麼,但我無法弄清楚。 – 2014-09-23 00:15:19
你用瀏覽器檢查圖片是否正確加載? – emmanuel 2014-09-23 00:22:13
是的,謝謝你的隊友。這有幫助。問題是我使用較少和CSS輸出是不同的,我的想法,所以我的網址是不正確的。這樣的noob。非常感謝您的支持伴侶。感謝 – 2014-09-23 00:35:29