您现在的位置是:网站首页> 编程资料编程资料

写html时,经常用到tab结构_CSS教程_CSS_网页制作_

2021-09-08 850人已围观

简介 写html时,经常用到tab,现整理一下。

html结构:

复制代码
代码如下:

CSS:
[code]
.tab_hd{ border-left:1px solid #ccc; margin-bottom:-1px; line-height:25px; }
.tab_hd a{ float:left; width:100px; height:24px; color:#1E50A2; border-top:1px solid #ccc; border-right:1px solid #ccc; text-align:center;}
.tab_hd .curr{ font-weight:bold;height:25px; background-color:#fff; position:relative;}
.tab_bd{ border:1px solid #ccc; padding:10px; border-bottom-left-radius:5px; border-bottom-right-radius:5px;}
.tab_cont{ display:none;}
.tab .tab_bd .curr{ display:block;}
[html]

-六神源码网