【问题标题】:Wizard control inner table cellpadding need to reduce精灵控制内表cellpadding需要减少
【发布时间】:2016-04-28 15:45:06
【问题描述】:

我使用了向导控件。此代码来自页面源。我想减少 cellpadding 和 cellspacing

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>

【问题讨论】:

    标签: jquery css asp.net wizard


    【解决方案1】:

    在您的 aspx 页面中为 Wizard 的标记中更改它们,如下所示。

    <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=5 设置在哪里。
    • 您能在您的aspx页面中发布Wizard控件的完整标记吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-09-13
    • 1970-01-01
    • 1970-01-01
    • 2011-10-27
    • 2013-08-13
    • 1970-01-01
    • 2023-03-21
    相关资源
    最近更新 更多