復制代碼 代碼如下:
· .ajax__tab_header: A container element that wraps all of the tabs at the top of the TabContainer. Child CSS classes:.ajax__tab_outer.
· .ajax__tab_outer: An outer element of a tab, often used to set the left-side background image of the tab.Child CSS classes: .ajax__tab_inner.
· .ajax__tab_inner: An inner element of a tab, often used to set the right-side image of the tab. Child CSS classes:.ajax__tab_tab.
· .ajax__tab_tab: An element of the tab that contains the text content. Child CSS classes:none.
· .ajax__tab_body: A container element that wraps the area where a TabPanel is displayed. Child CSS classes: none.
· .ajax__tab_hover . This is applied to a tab when the mouse is hovering over. Child CSS classes:.ajax__tab_outer.
· .ajax__tab_active: This is applied to a tab when it is the currently selected tab. Child CSS classes:.ajax__tab_outer.
起個項目名字叫做AjaxControlToolKit_Tab。
第二步: 編輯default.aspx頁面,
首先需要在form的scriptmanager下方拖入一個TabContainer控件,然后設置它的屬性:
可以看出來每個tabcontainer中需要有tabpanel Panel的屬性中設置headertext,也就是這個tab的名字,然后每個panel中需要ContentTemplate來顯示內容,隨便填寫點顯示的內容。
新聞熱點
疑難解答
圖片精選