写html时,常常用到tab构造

日期:2021-01-20 类型:科技新闻 

关键词:快速建站,网站建设系统,免费网页建站,网站免费建设,建站系统

html构造:

拷贝编码
编码以下:

<div class="tab tab_survey">
<div class="tab_hd clearfix"><a class="curr" href="#">单题型调研</a><a href="#">多题型调研</a></div>
<div class="tab_bd">
<div class="tab_cont curr">
<ul class="list_survey_content">
<li>检测</li>
<li>检测</li>
<li>检测</li>
</ul>
</div>
<div class="tab_cont"></div>
</div>
</div>

CSS:
[code]
.tab_hd{ border-left:1px solid #ccc; margin-bottom:⑴px; 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]