我试图使报告在 HTML 中看起来不错,就像图像和这些图像上的文本重叠一样,问题是当我在 FastReport 中将报告转换为 HTML 时,它会将所有图像移动到不与任何其他图像重叠对象。
所以问题是,有没有办法在报告中编辑 Css/JScrip 以使图像按我想要的方式显示?比如添加:
img
{
margin-right:-1px;
}
或
.test
{
margin-right:-1px;
}
<img class='test'>
但我无法手动编辑它们,我需要快速报告来完成此操作,包括功能、事件或任何可能的方式(如果可能)。
谢谢。
这是我从快速报告中得到的:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name=Generator content="FastReport 4.0 http://fast-report.com">
<title>100</title>
<style type="text/css"><!--
.page_break {page-break-before: always;}
.s0 {
font-family: Arial;
font-size: 13px;
color: #000000; font-style: normal;
background-color: #FFFFFF;
text-align: Left; vertical-align: Top;
}
--></style>
</head>
<body
bgcolor="#FFFFFF" text="#000000">
<a name="PageN1"></a>
<table width="798" border="1" cellspacing="0" cellpadding="0">
<tr style="height: 1px"><td width="359"/><td width="2"/><td width="437"/></tr>
<tr style="height:161px">
<td class="s0" style="font-size:1px"><img src="http://i44.tinypic.com/29kqot1.jpg" width="805" height="571" alt=""></td>
</tr>
<tr style="height:251px">
<td class="s1">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat</td>
</tr>
</table>
</body></html>
我想将文本放在图像上方,但无法实现,我尝试了 Fast Report 中的所有内容。 我绑定(bind)了“分割图像”,但问题是 HTML 中的图像之间有 1px 空间,这就是为什么我需要 Margin-right: -1px 但无法完成它,
最佳答案
我们更改了快速报告中 HTMLExport 的来源,以防某些人遇到此问题。
关于javascript - Fast Report 将报告转换为 HTML,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16297500/