Scalable tab page Effects

Source: Internet
Author: User

As written in the project, share the following with you:

 

Introduction to extensible tab labels

Let's not talk about it. first look at the effect:

You can also click here (http://fe.baidu.com /~ Zhaoxianlie/TAB/space-tab.html) view

The width of each tab can be adaptive or specified in CSS!

HTML snippets
<Div class = "mod-space-tab"> <Div class = "tab-left-corner tab-on"> <Div class = "tab-right-corner"> <div class = "tab-center"> profile </div> <Div class = "tab-left-corner"> <Div class =" tab-right-corner "> <Div class =" tab-center "> spatial data </div> <Div class =" tab-left- corner "> <Div class =" tab-right-corner "> <Div class =" tab-center "> blacklist </div>/ div> <Div class = "clear"> </div>
CSS Fragment
/*************************************** ************ **************************************** *********/. Mod-space-tab {font-size: 12px; Height: 25px; border-bottom: 2px solid # bed730; padding-left: 10px ;}. mod-space-tab. tab-left-corner ,. mod-space-tab. tab-right-corner ,. mod-space-tab. tab-center {Background: URL (http://img.baidu.com/hi/img/ihome/space-tab-bg.gif) No-repeat 0 0 ;} /******************************* normal status ****** ********************************/. mod-space-tab. tab-left-corner {background-position: Left-53px; margin-Right: 5px; padding-left: 4px; line-Height: 25px; cursor: pointer; float: left; _ Position: relative; _ top: 3px ;}. mod-space-tab. tab-left-corner. tab-right-corner {background-position: Right-margin PX; padding-Right: 4px ;}. mod-space-tab. tab-left-corner. tab-right-corner. tab-center {background-position: Center-80px; Background-repeat: Repeat-X; Height: 25px; text-align: center; overflow: hidden ;} ****** ********************************/. mod-space-tab. tab-on {background-position: Left top; border-bottom: 2px solid # FFF ;}. mod-space-tab. tab-on. tab-right-corner {background-position: Right-27px ;}. mod-space-tab. tab-on. tab-right-corner. tab-center {Background: # FFF; border-top: 1px solid # bed730; font-weight: bold ;}. clear {clear: Both ;} /******************************* change the width of each tab here ** * *** when the width is not set, self-Adaptive ********************/. mod-space-tab. tab-left-corner. tab-right-corner. tab-center {width: 66px;/* Actual width = width + 8 */}
Compatibility

Internet Explorer 6/7/8, Firefox, chrome, and sogou

Feedback

Click here to make a brick!

Online Editing Document Structure  Document Information

Power by space-Fe 2010

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.