我主要实现了:
1、tab之间的相互切换;
2、显示选中的tab
下面看看实现代码:
css:
html,body,div{ font-size: 12px; font-family:"Arial";}.tab-ui{ width: 400px; height: 300px; position: relative;}.tab-title{ border-top-right-radius:8px; float: left; border: solid 1px #7EABCD; background: #c5dbec; padding: 5px; font-weight: bold; color: #ffffff; margin: 1px;}.tab-title:hover{ cursor: pointer;}.tab-title-active{ background: #7EABCD;}.content{ width: 100%; height: 100%; position: absolute; top: 27px; left: 1px;}.tab-content{ padding: 10px; border: solid 1px #c5dbec;}
function show(total,active){ for(var i=1;i
TAB切换标签