2016-01-22 24 views
0

我使用了嚮導控件。此代碼來自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> 

回答

0

如下所示,在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的標記也。

只需將這些值設置爲適合您的情況。

+0

感謝您的回答。這一個我已經嘗試過,但它不影響內表。我不知道這個cellpadding = 5在哪裏設置。 – sreejaya

+0

你可以在你的aspx頁面上發佈Wizard控件的完整標記嗎? – Sunil