无论屏幕大小如何,我都试图让 cfgrid 的高度和宽度适合页面。
<cfform>
<!-- I have tried: But it can not have percentages. -->
<cfgrid name="FLines" height="60%" width="60%" format="html" selectmode="EDIT" striperows="Yes" query="PGs" appendkey="No" hrefkey="True">
<!-- I do not want to tell it a hardcoded way for width and height. -->
<cfgrid name="FLines" height="600" width="600" format="html" selectmode="EDIT" striperows="Yes" query="PGs" appendkey="No" hrefkey="True">
<cfgridcolumn name="PRID" display="No">
<cfgridcolumn name="PROFILE" header="Profile" width="50">
<cfgridcolumn name="DESCRIPTION" header="Description" width="200">
<cfgridcolumn name="Qty" header="Prod Cat" width="50">
<cfgridcolumn name="CARTONWIDTH" header="Carton Width" width="75">
<cfgridcolumn name="Configuration" header="Config" width="50">
</cfgrid>
有什么建议么?