<div style="overflow: scroll; height: expression(document.body.clientHeight-28); width:expression(document.body.clientWidth); text-align: center; float:left;"> <table cellSpacing="0" cellPadding="0" border="1" bordercolor="#ff00ff"> <tr> <td vAlign="top" align="left"> <CR:CrystalReportViewer id="CrystalReportViewer1" runat="server" HasZoomFactorList="False" HasSearchButton="False" HasPrintButton="False" HasGotoPageButton="true" HasExportButton="False" PrintMode="ActiveX" DisplayGroupTree="False" HasViewList="False" HasToggleGroupTreeButton="False" HasDrillUpButton="False" HasCrystalLogo="False" AutoDataBind="true"></CR:CrystalReportViewer> </td> </tr> </table> </div>水晶報表超出div,不受div滾動條控制:div滾動條滾動時,報表內(nèi)容不動。(HTML 4.0時正常,XHTML 1.0時不受div滾動條控制)
2 回答

大話西游666
TA貢獻1817條經(jīng)驗 獲得超14個贊
你要添加一個固定不動的代碼
<div style="position:absolute;z-index:100;background:#eeeeee;margin-top:1px;">
固定不動的內(nèi)容在此
</div>
<div style="overflow:scroll;width:200px;height:200px;border:1px solid red;position:absolute;z-index:1;padding-top:10px;">
<div style="width:100px;">
ggggggggg<br/>gggggggg<br/>gggggg<br/>ggggg<br/>gggggg<br/>ggggg<br/>gggggggg< br/>ggggggg<br/>ggggggg<br/>ggggggggg<br/>gggggsda<br/>fgsdfsdfsdfsdfsd </div>
</div>
</div>
或者你就用finereport做,更加直接一些
- 2 回答
- 0 關(guān)注
- 710 瀏覽
添加回答
舉報
0/150
提交
取消