你能告诉我我的代码有什么问题,我看不到我的背景图片吗?
<!DOCTYPE html>
<html>
<head>
<title>My Protfolio</title>
<link rel="stylesheet" href="css/bootstrap.css">
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
<style>
section {
width: 100vw;
height: 100vh;
}
</style>
</head>
<body data-spy="scroll" data-target=".navbar">
<nav class="navbar navbar-inverse navbar-fixed-bottom">
<ul class="nav navbar-nav">
<li><a href="#">Home</a></li>
<li><a href="#">What we do</a></li>
<li><a href="#">What about me</a></li>
<li><a href="#">Contact me</a></li>
</ul>
</nav
<section id="home" style="background: url(images/bg.jpg); background-size: 100% 100%;"></section>
</body>
</html>
我的index.html和图片文件夹处于同一级别。谢谢!
答案 0 :(得分:0)
我明白了......我忘记了“&gt;”在结束“nav”标签!