且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何增加Ajax TabContainer控件中选项卡的高度和宽度?

更新时间:2021-12-27 08:02:03

TabPanel具有height和width属性.用px
给他们分配数值
TabPanels have height and width properties. Assign them the numeric values with px

<ajaxtoolkit:tabcontainer runat="server" xmlns:ajaxtoolkit="#unknown">
        OnClientActiveTabChanged="ClientFunction" 
        Height="150px"
        Width="400px"
        ActiveTabIndex="1"        
        OnDemand="true"        
        AutoPostBack="false"
        TabStripPlacement="Top"
        CssClass="ajax__tab_xp"
        ScrollBars="None"
        UseVerticalStripPlacement="true"
        VerticalStripWidth="120px"
        >
    <ajaxtoolkit:tabpanel runat="server">
        HeaderText="Signature and Bio"
        Enabled="true"
        ScrollBars="Auto"        
        OnDemandMode="Once"
        <contenttemplate>
            ...
        </contenttemplate>
    />
</ajaxtoolkit:tabpanel></ajaxtoolkit:tabcontainer>