日韩黑丝制服一区视频播放|日韩欧美人妻丝袜视频在线观看|九九影院一级蜜桃|亚洲中文在线导航|青草草视频在线观看|婷婷五月色伊人网站|日本一区二区在线|国产AV一二三四区毛片|正在播放久草视频|亚洲色图精品一区

分享

AjaxControlToolkit中,TabContainer的一個(gè)簡(jiǎn)單Css樣式(轉(zhuǎn)載...

 悟靜 2012-02-25

AjaxControlToolkit中,TabContainer的一個(gè)簡(jiǎn)單Css樣式(轉(zhuǎn)載)

因?yàn)轫?xiàng)目需要,感覺(jué)使用Ajax的TabContainer比較方便,但是其默認(rèn)的樣式與我們已有的風(fēng)格不一致,所以查了查資料,湊了套簡(jiǎn)單的style.

效果圖:
image image

Css Style:

<style type="text/css">
/* Following are tab control styles, Special for Outsourcing Set-up Process Page */
/* Default tab */
.AjaxTabStrip .ajax__tab_tab
{
    font-size: 12px;
    padding: 4px;
    width: 105px;  /* Your proper width */
    height:16px;   /* Your proper height */
    background-color: #EAEAEA;
}
/* When mouse over */
.AjaxTabStrip .ajax__tab_hover .ajax__tab_tab
{
    font-weight:bold;
    text-decoration: underline;
}
/* Current selected tab */
.AjaxTabStrip .ajax__tab_active .ajax__tab_tab
{
    background-color: #C2E2ED;
    font-weight:bold;
}
/* TabPanel Content */
.AjaxTabStrip .ajax__tab_body
{
    border: 1px solid #999999;
    padding: 8px;
    background-color: #ffffff;
    margin-right: 9px; /* Your proper right-margin, make your header and the content have the same width */
    margin-top:0px;
}
</style>

Code in aspx

<cc1:TabContainer ID="tabstrip11" CssClass="AjaxTabStrip" runat="server" ActiveTabIndex="1"
    Height="121px" Width="590px">
    <cc1:TabPanel ID="TabPanel1" runat="server" HeaderText="Tab 1">
        <ContentTemplate>
            Content of Tab 1
        </ContentTemplate>
    </cc1:TabPanel>
    <cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="Tab 2">
        <ContentTemplate>
            Content of Tab 1
        </ContentTemplate>
    </cc1:TabPanel>
    <cc1:TabPanel ID="TabPanel3" runat="server" HeaderText="Tab 3">
        <ContentTemplate>
            Content of Tab 3
        </ContentTemplate>
    </cc1:TabPanel>
    <cc1:TabPanel ID="TabPanel4" runat="server" HeaderText="Tab 4">
        <ContentTemplate>
            Content of Tab 4
        </ContentTemplate>
    </cc1:TabPanel>
    <cc1:TabPanel ID="TabPanel5" runat="server" HeaderText="Tab 5">
        <ContentTemplate>
            Content of Tab 5
        </ContentTemplate>
    </cc1:TabPanel>
</cc1:TabContainer>

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多