首页 > 解决方案 > 如何不重叠另一个文件的标题?

问题描述

我制作了一个头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>

图片被导航栏重叠 在此处输入图像描述

标签: htmlcsstwitter-bootstrapjspinclude

解决方案


推荐阅读