我爲簡單的一個頁面應用程序編寫代碼。我想將背景顏色(不包括導航欄& jumbotron)從默認白色更改爲其他顏色。我無法在CSS表單中覆蓋白色。無法更改主體的背景顏色
rate.html
body
{
\t background:#2c3e50;
}
<html>
<head>
\t <title></title>
\t <link rel="stylesheet" type="text/css" href="effects.css">
\t <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
\t <script
src="https://code.jquery.com/jquery-3.1.1.min.js"
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>
<body>
\t <nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><div class="glyphicon glyphicon-pencil"></div>
Rate Gitam</a>
</div>
<p class="navbar-text">Gitam university's first rating site</p>
\t </div><!-- /.navbar-collapse -->
\t </nav>
\t <div class="jumbotron">
\t \t <h1>Rate your professor</h1>
\t \t <p>Rate your professor and choice of your elective on a five point scale</p>
\t \t
\t </div>
\t <div class="col"> \t
\t <form class="form-horizontal ">
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Faculty Name</label>
<div class="col-lg-3">
<input type="text" class="form-control" id="inputEmail3" placeholder=" Faculty Name">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">rating</label>
<div class="col-lg-3">
<input type="text" class="form-control" id="inputPassword3" placeholder="Rating">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-default">Submit</button>
</div>
</div>
</form>
</div>
</body>
</html>
什麼元素有「白」色? –