242 lines
6.2 KiB
HTML
242 lines
6.2 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>电动机起动分析报告</title>
|
||
<style>
|
||
body {
|
||
font-family: 'Arial', sans-serif;
|
||
margin: 0;
|
||
padding: 0;
|
||
background-color: #f4f4f4;
|
||
color: #333;
|
||
line-height: 1.6;
|
||
}
|
||
header {
|
||
background: #4CAF50;
|
||
color: white;
|
||
padding: 20px 0;
|
||
text-align: center;
|
||
}
|
||
header h1 {
|
||
margin: 0;
|
||
font-size: 2em;
|
||
}
|
||
nav {
|
||
background: #333;
|
||
color: white;
|
||
overflow: hidden;
|
||
}
|
||
nav a {
|
||
float: left;
|
||
display: block;
|
||
color: white;
|
||
text-align: center;
|
||
padding: 14px 20px;
|
||
text-decoration: none;
|
||
}
|
||
nav a:hover {
|
||
background-color: #ddd;
|
||
color: black;
|
||
}
|
||
.container {
|
||
padding: 20px;
|
||
}
|
||
h2 {
|
||
color: #4CAF50;
|
||
font-size: 1.5em;
|
||
border-bottom: 2px solid #4CAF50;
|
||
padding-bottom: 10px;
|
||
margin-bottom: 20px;
|
||
}
|
||
h3 {
|
||
color: #333;
|
||
font-size: 1.3em;
|
||
margin-bottom: 10px;
|
||
}
|
||
p {
|
||
font-size: 1em;
|
||
line-height: 1.6;
|
||
margin-bottom: 20px;
|
||
}
|
||
.section {
|
||
margin-bottom: 40px;
|
||
}
|
||
table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
margin-bottom: 20px;
|
||
}
|
||
table, th, td {
|
||
border: 1px solid #ddd;
|
||
}
|
||
th, td {
|
||
padding: 8px;
|
||
text-align: left;
|
||
}
|
||
th {
|
||
background-color: #4CAF50;
|
||
color: white;
|
||
}
|
||
.highlight {
|
||
background-color: #ffff99;
|
||
}
|
||
footer {
|
||
background: #333;
|
||
color: white;
|
||
text-align: center;
|
||
padding: 10px 0;
|
||
position: relative;
|
||
width: 100%;
|
||
bottom: 0;
|
||
margin-top: 20px; /* 增加顶部边距以避免覆盖内容 */
|
||
}
|
||
.image-container {
|
||
width: 200px;
|
||
margin: 0 auto; /* 居中对齐 */
|
||
}
|
||
.image-container img {
|
||
width: 100%;
|
||
height: auto; /* 保持纵横比 */
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<header>
|
||
<h1>电动机起动分析报告</h1>
|
||
</header>
|
||
<nav>
|
||
<a href="#section1">章节划分</a>
|
||
<a href="#section2">静态描述内容</a>
|
||
<a href="#section3">动态加载内容</a>
|
||
<a href="#section4">报告命名规则</a>
|
||
<a href="#section5">版本管理</a>
|
||
<a href="#section6">分类属性</a>
|
||
<a href="#section7">表格数据</a>
|
||
<a href="#section8">高亮内容</a>
|
||
<a href="#section9">图片展示</a>
|
||
<a href="#section10">联系信息</a>
|
||
</nav>
|
||
<div class="container">
|
||
|
||
<div id="section1" class="section">
|
||
<h2>章节划分</h2>
|
||
|
||
<div class="section">
|
||
<h2>章节一</h2>
|
||
<p>内容一</p>
|
||
</div>
|
||
|
||
<div class="section">
|
||
<h2>章节二</h2>
|
||
<p>内容二</p>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div id="section2" class="section">
|
||
<h2>静态描述内容</h2>
|
||
|
||
<div class="component">
|
||
<h3>组件1</h3>
|
||
<p>这是组件1的静态描述内容。</p>
|
||
</div>
|
||
|
||
<div class="component">
|
||
<h3>组件2</h3>
|
||
<p>这是组件2的静态描述内容。</p>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div id="section3" class="section">
|
||
<h2>动态加载内容</h2>
|
||
|
||
<div class="content">
|
||
<p>动态内容1</p>
|
||
</div>
|
||
|
||
<div class="content">
|
||
<p>动态内容2</p>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div id="section4" class="section">
|
||
<h2>报告实例化后的命名规则</h2>
|
||
<p>报告的命名规则包括...</p>
|
||
</div>
|
||
|
||
<div id="section5" class="section">
|
||
<h2>版本管理</h2>
|
||
<p>当前版本:1.0</p>
|
||
<p>版本描述:初始版本</p>
|
||
<p>版本状态:可用</p>
|
||
</div>
|
||
|
||
<div id="section6" class="section">
|
||
<h2>报告模板的分类属性</h2>
|
||
<p>电动机态势感知类</p>
|
||
</div>
|
||
|
||
<div id="section7" class="section">
|
||
<h2>表格数据</h2>
|
||
<table>
|
||
<tr>
|
||
<th>列1</th>
|
||
<th>列2</th>
|
||
<th>列3</th>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>数据1-1</td>
|
||
<td>数据1-2</td>
|
||
<td>数据1-3</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>数据2-1</td>
|
||
<td>数据2-2</td>
|
||
<td>数据2-3</td>
|
||
</tr>
|
||
|
||
</table>
|
||
</div>
|
||
|
||
<div id="section8" class="section">
|
||
<h2>高亮内容</h2>
|
||
<p class="highlight">这是高亮显示的内容。</p>
|
||
</div>
|
||
|
||
<div id="section9" class="section">
|
||
<h2>图片展示</h2>
|
||
|
||
<div class="image-container">
|
||
<img src="/home/dengjinlai/ReportGeneration/PdfGeneration/input/image.png" alt="图片1">
|
||
<p>这是一张示例图片1</p>
|
||
</div>
|
||
|
||
<div class="image-container">
|
||
<img src="/home/dengjinlai/ReportGeneration/PdfGeneration/input/image.png" alt="图片2">
|
||
<p>这是一张示例图片2</p>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div id="section10" class="section">
|
||
<h2>联系信息</h2>
|
||
|
||
<p>联系人:张三</p>
|
||
<p>电话:1234567890</p>
|
||
<p>邮箱:zhangsan@example.com</p>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
<footer>
|
||
<div>版本信息:1.0 - 初始版本 - 可用</div>
|
||
<div>© eCL3000 报告生成系统</div>
|
||
</footer>
|
||
</body>
|
||
</html> |