【发布时间】:2017-09-24 07:35:15
【问题描述】:
/*This is for the overall look of the page, what font and the repeated background image*/
body {
background-image: url("../Assets/crossword.png");
font-family: Rockwell, "Courier New", Georgia, 'Times New Roman', serif;
}
/*This is just to get the main content of the page centered*/
#mainBody {
width: 80%;
margin: auto;
margin-top: 10px;
}
.navbar-custom {
background-color: none;
}
<!DOCTYPE html>
<html>
<head>
<!-- This is the title of the first page -->
<title></title>
<meta charset="utf-8" />
<!-- This is the viewport settings for bootstrap -->
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- These are the javascript, CSS, and jquery file scripts -->
<script src="Scripts/jquery-1.9.1.min.js"></script>
<script src="Scripts/bootstrap.min.js"></script>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<link href="Content/MyStyleSheet.css" rel="stylesheet" />
</head>
<body>
<div id="mainBody">
<nav class="navbar navbar-inverse navbar-custom">
</nav>
</div>
</body>
</html>
不知道为什么我在使用这个导航栏时遇到这么多麻烦。尝试引导,因为它应该让事情变得更容易..
但我可以将导航栏背景的颜色更改为蓝色。但是,如果我不给背景颜色。它什么都不做。
我已尝试将其标记为重要,我看到了将其设置为默认导航栏的建议,但无法使其正常工作。我只是想让背景透明,里面没有任何东西。
【问题讨论】:
标签: css twitter-bootstrap