公告板不同板块点击切换效果

<div class="gg">
			<div class="ncsc-form-goods">
				<ul id="tab" class="tab">
					<li>
						<input type="button" value="招标公告" class="current" id="but1">
					</li>
					<li>
						<input type="button" value="招标" class="" id="but2">
					</li>
				</ul>
				<div class="tab-box">
					<ul id="ul1">
						<li><a>补充发票的内容</a></li>
					</ul>
					<ul id="ul2" style="display: none;">
						<li><a>9折</a></li>
					</ul>
				</div>
			</div>
<script type="text/javascript">
   $(document).ready(function(){
      $("#but1").click(function(){
         $("#ul1").show();
         $("#ul2").hide();
         $("#but1").addClass("current");
         $("#but2").toggleClass("current");
      });
      $("#but2").click(function(){
         $("#ul2").show();
         $("#ul1").hide();
         $("#but2").addClass("current");
         $("#but1").toggleClass("current");
      });
   });
</script>


.gg{
   width: 250px;
   /* min-height: 1px; */
   _height: 1px;
   _display: inline;
   float: left;
   margin-left: 20px;
}
.ncsc-form-goods ul.tab {
   height: 30px;
   padding-left: 25px;
   margin: 10px 0px 2px 0px;
   background: url(../images/input.gif) 0px 0px repeat-x;
}
.tab-box{
   border: 1px solid #efefef;
   border-top:none;
   border-radius: 0px 0px 3px 3px;
   height: 213px;
}
.tab-box li{
   padding: 3px;
   border-bottom: 1px dotted #999999;
   margin: 0px 3px;
}

ul.tab li {
   float: left;
   margin-right: 6px;
}

ul.tab input {
   width: 100px;
   height: 30px;
   line-height: 30px;
   text-align: center;
   color: #666666;
   cursor: pointer;
   outline: none;
   blr: expression(this.hideFocus = true);
   border: 0px;
   background: url(../images/input.gif) 0px -30px no-repeat;
}

ul.tab input:hover {
   color: #333333;
}

ul.tab input.current {
   color: #2b2b2b;
   font-weight: bold;
   background: url(../images/input.gif) -120px -30px no-repeat;
}



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值