在使用spread时,我发现spread自动生成的html代码太多了,以一个textbox为例,
a.使用ASP.NET,画面生成后,代码如下:
<th width="155" style="border-right: solid 1px #fff;">
管理Code(<font color="#FF0000">※</font>)
</th>
b.我在一个Excel文件中画一个TextBox,画面上用spread打开该Excel文件,画面生成后,代码如下:
<tr FpSpread="r" FpKey="4" style="height:13px;">
<td class="s2s10s0" FpEditorID="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_ctl23" FpCellType="readonly" col="4" scol="4" colspan="4" rowspan="2" style="overflow:hidden;"><nobr>管理コード(※)</nobr></td><td class="s4s16s0" valign="top" FpEditorID="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_ctl35" col="8" scol="8" colspan="6" rowspan="2" style="overflow:hidden;padding-right:0px;padding-left:0px;"><input name="ctl00$ContentPlaceHolder1$vaFpSiseisyoInfo$4,8" type="text" value="1222" size="10" id="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_4,8" tabindex="-1" class="spread_textbox_style" FpEditor="TextBox" style="width:100%;width:95%;height:100%;" /></td><td class="s2s13s0" FpEditorID="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_ctl29" FpCellType="readonly" style="overflow:hidden;"><nobr>&nbsp;</nobr></td><td class="s2s13s0" FpEditorID="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_ctl29" FpCellType="readonly" style="overflow:hidden;"><nobr>&nbsp;</nobr></td><td class="s2s14s0" FpEditorID="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_ctl31" FpCellType="readonly" style="overflow:hidden;"><nobr>&nbsp;</nobr></td><td class="s2s14s0" FpEditorID="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_ctl31" FpCellType="readonly" style="overflow:hidden;"><nobr>&nbsp;</nobr></td><td class="s2s13s0" FpEditorID="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_ctl29" FpCellType="readonly" style="overflow:hidden;"><nobr>&nbsp;</nobr></td><td class="s2s13s0" FpEditorID="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_ctl29" FpCellType="readonly" style="overflow:hidden;"><nobr>&nbsp;</nobr></td><td class="s2s14s0" FpEditorID="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_ctl31" FpCellType="readonly" style="overflow:hidden;"><nobr>&nbsp;</nobr></td><td class="s2s14s0" FpEditorID="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_ctl31" FpCellType="readonly" style="overflow:hidden;"><nobr>&nbsp;</nobr></td><td class="s2s14s0" FpEditorID="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_ctl31" FpCellType="readonly" style="overflow:hidden;"><nobr>&nbsp;</nobr></td><td class="s2s14s0" FpEditorID="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_ctl31" FpCellType="readonly" style="overflow:hidden;"><nobr>&nbsp;</nobr></td><td class="s2s14s0" FpEditorID="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_ctl31" FpCellType="readonly" style="overflow:hidden;"><nobr>&nbsp;</nobr></td><td class="s2s15s0" FpEditorID="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_ctl33" FpCellType="readonly" style="overflow:hidden;"><nobr>&nbsp;</nobr></td><td class="s0s6s0" FpEditorID="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_ctl15" FpCellType="readonly" style="overflow:hidden;"><nobr>&nbsp;</nobr></td><td class="s0s6s0" FpEditorID="ctl00_ContentPlaceHolder1_vaFpSiseisyoInfo_ctl15" FpCellType="readonly" style="overflow:hidden;"><nobr>&nbsp;</nobr></td>
</tr>
由于我的画面项目比较多,这样在画面加载时很慢,请问,能想办法使spread自动生成的html尽量的少么? |
|