向导控制内表格cellpadding需要减少
问题描述:
我使用了向导控件。此代码来自pagesource。我想减少cellpadding和cellspacing向导控制内表格cellpadding需要减少
cellspacing =“5”cellpadding =“5”。我必须改变这些价值。这是默认的向导控件内表样式。怎么能改变呢?
<table cellspacing="0" cellpadding="0" border="0" id="WizardGL" style="width:100%;border-collapse:collapse;">
<tbody>
<tr style="height:100%;">
<td>
..................................................
</td>
</tr>
<tr>
<td align="right">
<table **cellspacing="5" cellpadding="5"** border="0">
<tbody><tr>
<td align="right">
<input type="submit" name="$WizardGL$StepNavigationTemplateContainerID$StepPreviousButton" value=" Previous" >
</td>
<td align="right">
<input type="submit" name="WizardGL$StepNavigationTemplateContainerID$StepNextButton" value="Next " id="WizardGL_StepNavigationTemplateContainerID_StepNextButton" >
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
答
如下所示,在aspx页面的向导标记中更改它们。
<asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="0"
OnActiveStepChanged="GetFavoriteNumberOnActiveStepIndex"
BackColor="#FFFBD6" BorderColor="#FFDFAD" BorderWidth="1px"
CellPadding="5" CellSpacing="3" Font-Names="Verdana"
Font-Size="0.8em" Width="322px">
</asp:Wizard>
但如果您使用的是布局模板与向导表元素,那么你需要确保你的布局模板设置的cellpadding和CELLSPACING的标记也。
只需将这些值设置为适合您的情况。
感谢您的回答。这一个我已经尝试过,但它不影响内表。我不知道这个cellpadding = 5在哪里设置。 – sreejaya
你可以在你的aspx页面上发布Wizard控件的完整标记吗? – Sunil