纯CSS3实现Tab标签菜单
XML/HTML Code
- <div class="widget">
- <ol class="widget-list" id="managers">
- <li>
- <a class="widget-list-link">
- <img src="">
- Manager #1 <span>481 followers</span>
- </a>
- </li>
- <li>
- <a class="widget-list-link">
- <img src="">
- Manager #2 <span>5162 followers</span>
- </a>
- </li>
- <li>
- <a class="widget-list-link">
- <img src="">
- Manager #3 <span>342 followers</span>
- </a>
- </li>
- </ol>
- <ol class="widget-list" id="designers">
- <li>
- <a class="widget-list-link">
- <img src="">
- Designer #1 <span>481 followers</span>
- </a>
- </li>
- <li>
- <a class="widget-list-link">
- <img src="">
- Designer #2 <span>5162 followers</span>
- </a>
- </li>
- <li>
- <a class="widget-list-link">
- <img src="">
- Designer #3 <span>342 followers</span>
- </a>
- </li>
- </ol>
- <ol class="widget-list" id="developers">
- <li>
- <a class="widget-list-link">
- <img src="">
- Developer #1 <span>481 followers</span>
- </a>
- </li>
- <li>
- <a class="widget-list-link">
- <img src="">
- Developer #2 <span>5162 followers</span>
- </a>
- </li>
- <li>
- <a class="widget-list-link">
- <img src="">
- Developer #3 <span>342 followers</span>
- </a>
- </li>
- </ol>
- <ul class="widget-tabs">
- <li class="widget-tab">
- <a href="#managers" class="widget-tab-link">Managers</a>
- <!-- Omitting the end tag is valid HTML and removes the space in-between inline blocks. -->
- <li class="widget-tab">
- <a href="#designers" class="widget-tab-link">Designers</a>
- <li class="widget-tab">
- <a href="#developers" class="widget-tab-link">Developers</a>
- </ul>
- </div>
原文地址:http://www.freejs.net/article_tabbiaoqian_384.html