我已经制作了一个jsp头文件以使用其他页面。
在头文件中,有一个导航栏贴在顶部(使用引导程序)
当我在另一页上包含头文件时,导航栏就很好
但是导航栏覆盖了内容。
下面是另一页上的代码,我还附上了它的外观。
<html>
<%@ include file="../include/header.jsp" %>
<head>
<title>Home</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.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/4.0.0/css/bootstrap.min.css">
</script>
<style>
table { table-layout: fixed; }
table th, table td { overflow: hidden; }
td {
white-space:pre
}
</style>
</head>
<body>
<div class="container">
<br>
<h2>English lines are under here</h2>
<h5>Just click each cell if you want to modify</h5>
<br>
<table id="btable" class="bg-light table table-hover table-condensed">
<thead>
<th class= "text-center" width="6%">No</th>
<th class= "text-center" width="12%">Word</th>
<th class= "text-center" width="44%">Dialogue</th>
<th class= "text-center" width="40%">Practice</th>
</thead>