2010-01-05 48 views
0

我们有大量数据的应用程序要通过Velocity模板转换为HTML表格。问题1:需要关注的一个领域是影响为页面元素提供精确的大小,而不是浏览器调整大小表格的高度和宽度 想要了解浏览器花费多少时间完成 而不是创建尺寸精确为1024 x 768的页面,例如为页面元素提供精确的大小而不是浏览器大小调整表格的影响

问题2:实际加载的页面是一个包含大量图表和单元格的图表,它们描绘了数据的微版本的15分钟时间间隔。所以网格单元被构造成在网格内放置'*'值。有没有更好的方法来做到这一点。

回答

1

问题1:

如果你的文件是数据密集型你描绘它是,这将是有益的,让您的显示标记的流量[自动调整大小] [图层/表]考虑到考虑那些显示面积较大的人[上图:1024x768]。您可能需要考虑通过图层+ CSS或占位符图像定义尽可能小的宽度/高度,以防止显示区域小于预期的1024x768的图像。

实施例:


<table width="100%" border="0" cellpadding="0" cellspacing="0"> 
    <tr> 
     <td width="25%"><div style="width:200px;height:1px;overflow:hidden;clip:rect(0px 200px 1px 0px);" title="Column Space Saver"></div></td> 
     <td width="75%"><div style="width:400px;height:1px;overflow:hidden;clip:rect(0px 400px 1px 0px);" title="Body Space Saver"></div></td> 
    </tr> 
    <tr> 
     <td width="25%" valign="top" style="background:#EB0000">Will be 200px or 25%, whichever is greater, and always adhere to those parameters even if my screen size is smaller than combined 600px [hence column is 200px body is 400px].</td> 
     <td width="75%" valign="top">Will be 400px or 75%, whichever is greater, and always adhere to those parameters even if my screen size is smaller than combined 600px [hence column is 200px body is 400px].</td> 
    </tr> 
</table>