html - 如何不重叠另一个文件的标题?
问题描述
我制作了一个头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>
解决方案
推荐阅读
- python - 将python中由换行符分隔的字符串文件解析为json数组
- c# - 在与另一个列表进行迭代时从列表中获取下一个项目
- python - 为什么python2中'1' == u'1'的结果是True?
- spring - 带有 Spring 4 的 Azure AD B2C
- javascript - 如何在网络浏览器上与我的智能合约进行交互
- python-3.x - 在 Unet 中获取超过 3 个类的输出的问题
- javascript - 使用 Javascipt 关闭 Chrome 打印预览对话框
- javascript - 为什么 show() 方法在 jQuery 中不起作用?
- typescript - 为什么不能分配(打字稿)泛型。如何修复它
- python - ImportError:无法从“keras.preprocessing”导入名称“image_dataset_from_directory”