Java House
Art is long
jquery css 選項卡,,,,,不知道怎么才能兼容ie6?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>無標題文檔</title>
<script language="javascript" type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<style type="text/css">
.tabBox
{
}
{
padding
:
0px
;
margin
:
5px 0px
;
border
:
1px solid #999
;
height
:
300px
;
}
.tabs
{
}
{
height
:
25px
;
background-color
:
#ccc
;
border-bottom
:
1px solid #999
;
}
.tabs ul
{
}
{
padding
:
0px
;
_padding
:
0px
;
margin
:
0px
;
_margin
:
0px
;
list-style-type
:
none
;
background-color
:
#ccc
;
height
:
25px
;
_height
:
26px
;
}
.tabs ul li
{
}
{
overflow
:
hidden
;
float
:
left
;
height
:
25px
;
_height
:
26px
;
margin
:
0px
;
_margin
:
0px
;
width
:
80px
;
list-style-type
:
none
;
border-right
:
1px solid #999
;
text-align
:
center
;
}
.active
{
}
{
background
:
#FFFFFF
;
border-bottom
:
1px solid #fff
;
_border-bottom
:
1px solid #fff
;
}
.vactive
{
}
{
background-color
:
#fff
;
border-right
:
1px solid #fff
;
_border_right
:
1px solid #fff
;
}
.normal
{
}
{
background-color
:
#eaeaea
;
}
.vnormal
{
}
{
background-color
:
#eaeaea
;
border-right
:
1px solid #999
;
}
.tabs ul li a
{
}
{
display
:
block
;
height
:
25px
;
width
:
100%
;
}
/**/
/*
.tabs ul li:hover,tabs ul li a:hover,tabs ul li a:visited{
background-color:#FFFFFF;
border-bottom:1px solid #fff;
_border-bottom:1px solid #fff;
}
.tabs ul a:active{
background-color:#FFFFFF;
border-bottom:1px solid #fff;
_border-bottom:1px solid #fff;
}
*/
.content
{
}
{
margin-top
:
0px
;
}
/**/
/*
display or nodisplay
*/
.displayCon
{
}
{
display
:
block
;
}
.hiddenCon
{
}
{
display
:
none
;
}
.vertabs
{
}
{
width
:
200px
;
float
:
left
;
height
:
100%
;
background-color
:
#CCCCCC
;
border-right
:
1px solid #999
;
}
.vertabs ul
{
}
{
list-style-type
:
none
;
width
:
200px
;
padding
:
0px
;
margin
:
0px
;
}
.vertabs ul li
{
}
{
list-style-type
:
none
;
width
:
200px
;
height
:
25px
;
text-align
:
center
;
border-bottom
:
1px solid #999
;
}
.vertabs ul li a
{
}
{
display
:
block
;
height
:
25px
;
vertical-align
:
middlel
;
}
.vercontent
{
}
{
width
:
auto
;
float
:
left
;
height
:
100%
;
padding
:
0px
;
margin
:
0px
;
}
</style>
<script language="javascript">
/**/
/*
$(function(){
$(".tabs ul li a").mouseover(function(){
$(this).addClass("active");
});
$(".tabs ul li a").mouseout(function(){
$(this).addClass("normal");
});
})
*/
$(function()
{
}
{
$(".titleli").mouseover(function(){
$(this).css({"background-color"
:
"#ffffff","border-bottom":"1px solid #fff"
}
);
$(this).siblings().css(
{
}
{
"background-color"
:
"#eaeaea","border-bottom":"1px solid #999"
}
);
var index=$(this).parent().find("li").index($(this));
/**/
/*
alert(index);
*/
//$(".content").children().eq(index).show().siblings().hide();
$(this).parent().parent().next().children().eq(index).show().siblings().hide();
return false;
});
$(".vtitleli").mouseover(function()
{
}
{
$(this).css({"background-color"
:
"#ffffff","border-right":"1px solid #fff"
}
);
$(this).siblings().css(
{
}
{
"background-color"
:
"#eaeaea","border-right":"1px solid #999"
}
);
var index=$(this).parent().find("li").index($(this));
/**/
/*
alert(index);
*/
//$(".content").children().eq(index).show().siblings().hide();
$(this).parent().parent().next().children().eq(index).show().siblings().hide();
return false;
});
})
</script>
</head>
<body>
<div class="tabBox">
<div class="tabs">
<ul>
<li class="titleli active"><a href="#">tab1</a></li>
<li class="titleli normal"><a href="#">tab2</a></li>
<li class="titleli normal "><a href="#">tab3</a></li>
<li class="titleli normal"><a href="#">tab4</a></li>
<li class="titleli normal"><a href="#">tab5</a></li>
</ul>
</div>
<div class="content">
<div class="displayCon">1111111111111111111111111111</div>
<div class="hiddenCon">22222222222222222222222222222</div>
<div class="hiddenCon">33333333333333333333333333333</div>
<div class="hiddenCon">44444444444444444444444444444</div>
<div class="hiddenCon">88888888888888888888888</div>
</div>
</div>
<div class="tabBox">
<div class="vertabs">
<ul>
<li class="vtitleli vactive "><a href="#">tab1</a></li>
<li class="vtitleli vnormal"><a href="#">tab2</a></li>
<li class="vtitleli vnormal "><a href="#">tab3</a></li>
<li class="vtitleli vnormal"><a href="#">tab4</a></li>
<li class="vtitleli vnormal"><a href="#">tab5</a></li>
</ul>
</div>
<div class="vercontent">
<div class="displayCon">1111111111111111111111111111</div>
<div class="hiddenCon">22222222222222222222222222222</div>
<div class="hiddenCon">33333333333333333333333333333</div>
<div class="hiddenCon">44444444444444444444444444444</div>
<div class="hiddenCon">88888888888888888888888</div>
</div>
</div>
</body>
</html>
發表于 2011-05-19 12:06
qin
閱讀(1194)
評論(0)
編輯
收藏
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
<
2011年5月
>
日
一
二
三
四
五
六
24
25
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
公告
學更多的知識,交更多的朋友
導航
BlogJava
首頁
發新隨筆
發新文章
聯系
聚合
管理
統計
隨筆: 66
文章: 3
評論: 167
引用: 0
常用鏈接
我的隨筆
我的文章
我的評論
我的參與
最新評論
留言簿
(8)
給我留言
查看公開留言
查看私人留言
隨筆分類
(37)
flex學習筆記(2)
(rss)
J2EE***學習歷程(11)
(rss)
J2SE學習筆記(5)
(rss)
SOA學習筆記(5)
(rss)
WEB相關技巧(3)
(rss)
五花八門(10)
(rss)
團 隊(1)
(rss)
情 感
(rss)
隨筆檔案
(66)
2013年6月 (2)
2012年2月 (1)
2011年11月 (1)
2011年9月 (2)
2011年8月 (2)
2011年7月 (1)
2011年6月 (9)
2011年5月 (4)
2009年8月 (1)
2009年7月 (1)
2009年3月 (1)
2008年11月 (2)
2008年10月 (6)
2008年9月 (8)
2008年8月 (9)
2008年7月 (16)
文章分類
(3)
亂七八糟(1)
(rss)
人生之旅
(rss)
原創之作(2)
(rss)
網絡抄襲
(rss)
積分與排名
積分 - 170792
排名 - 346
最新評論
1.?re: (spring+hibernate)java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
@帶著枷鎖起舞
我的前臺也一直報404,不知道什么問題
--伊利兵工廠
2.?re: css設置中文字體(font-family:"黑體")后樣式失效問題[未登錄]
zz
--zz
3.?求幫助啊
評論內容較長,點擊標題查看
--clwman
4.?re: (spring+hibernate)java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
@clwman
這個不知道是什么jar包沖突了
--clwman
5.?求幫助啊
評論內容較長,點擊標題查看
--clwman
閱讀排行榜
1.?(spring+hibernate)java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V(29629)
2.?css設置中文字體(font-family:"黑體")后樣式失效問題(19934)
3.?(flex)一個簡單的flex登陸實例(14505)
4.?啟動tomcat出現:警告: Settings: Could not parse struts.locale setting, substituting default VM locale(10854)
5.?(ssh)一個簡單的struts,hibernate例子以及struts,hibernate集成(10840)
評論排行榜
1.?flex和java相結合準備工作和一個實例(38)
2.?(flex)一個簡單的flex登陸實例(30)
3.?(spring+hibernate)java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V(22)
4.?學習java基礎后總結出來的相關資料(20)
5.?Exception in thread "main" org.hibernate.PropertyNotFoundException錯誤(7)
Powered by:
博客園
模板提供:
滬江博客
Copyright ©2025 qin
主站蜘蛛池模板:
和平区
|
石柱
|
阳高县
|
尉氏县
|
商河县
|
错那县
|
建昌县
|
宁海县
|
宝兴县
|
久治县
|
甘德县
|
荔波县
|
札达县
|
宁远县
|
东海县
|
辽阳市
|
平南县
|
宁明县
|
佛冈县
|
庆元县
|
临高县
|
陈巴尔虎旗
|
桑植县
|
赞皇县
|
莱阳市
|
南开区
|
浮山县
|
淳安县
|
彭山县
|
大埔区
|
扎兰屯市
|
德安县
|
庆云县
|
徐闻县
|
简阳市
|
冕宁县
|
安阳市
|
玉环县
|
奇台县
|
京山县
|
丰台区
|