已采纳回答 / display_none
<style type="text/css"> /* 标签和文本结合区域效果制作: 1.用ul做分类标签 2.把ul的display定义为block使ul区域和下面div区域结合在一起 3.给ul定义一个下边框或者给div内容区域定义一个上边框 4.所有li标签默认样式不设下边框,作为激活显示的li标签加宽其#fff(白色) 区域的下边框,覆盖。 */ *{margin:0px; padding:0px...
2016-03-13
虽然没能用老是的方法实现出来,但是用jquery方法还是实现了这样的效果:
$(document).ready(function(){
$(".notice-tit li").mouseover(function(){
$(".notice-tit li").eq($(this).index()).addClass("select").siblings().removeClass('select');
$(".notice-con div").hide().eq($(this).index()).show();
});
});
$(document).ready(function(){
$(".notice-tit li").mouseover(function(){
$(".notice-tit li").eq($(this).index()).addClass("select").siblings().removeClass('select');
$(".notice-con div").hide().eq($(this).index()).show();
});
});
2016-03-12