CF版本:7,0,2,142559
<cfdocument pageheight="11"
pagewidth="8.5"
unit="in"
marginbottom=".7"
marginleft="0"
marginright="0"
margintop="1.1"
format="pdf"
pagetype="custom"
scale="100">
我有一个
<cfdocumentitem type="header">
<style type="text/css" media="screen">@import "header.css";</style>
<div class=header>
Content
</div>
<cfdocumentitem>
header.css看起来像
#top {
position:absolute;
left:0in;
top:0in;
height:.458in;
width:8.5in;
background-color:#770000;
}
也有一个类似的页脚
然后在cfdocument标签里面我有
<div id="content"
style="position:absolute;
left:0in; top:0in;
width:7in;
border:solid;
border-width:thin;">
问题是内容div渲染比页眉和页脚更宽,它看起来像是超出规模或其他东西。如果我在猜测中减少“内容”div的宽度并检查方式,似乎只要我达到与页眉和页脚的宽度相匹配的宽度,它就会快速恢复到正常比例,并且不会像我需要的那样适合宽度。我该如何解决这个问题?
恼人的是我可以将内容div设置为宽度:6.51in;高度:6.95in;它非常适合。
答案 0 :(得分:2)
这是CFMX 7中的一个错误。 检查这些链接并确保更新服务器。