<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>巩文彬的个人主页</title>
<style type="text/css">
/*设置超链接样式*/
table {
border-collapse: collapse;
border-spacing: 0;
}

a {
color:black;
text-decoration: none;
font-size: 12px;
/*font-weight: bolder;*/
}

a:hover {
color: white;
/*text-decoration: underline;*/
/*font-size: 12px;*/
background:rgb(60, 60, 60);
}

a:visited {
/*color: #5086a5;*/
font-size: 12px;
}
/*整个tab层居中,宽度为600px*/
#tabDiv {
width: 600px;
margin: 1em auto;
padding-bottom: 10px;
border-right: #b2c9d3 1px solid;
border-top: #b2c9d3 1px solid;
border-left: #b2c9d3 1px solid;
border-bottom: #b2c9d3 1px solid;
background: #ffffff;
}
/*tab头的样式*/
#tabsHead {
padding-left: 0px;
height: 35px;
background-color:rgb(180, 180, 180);
font-size: 1em;
margin: 1px 0px 0px;
/*color: #5086a5;*/
line-height: 35px;
}
/*已选tab头(超链接)的样式*/
.curtab {
padding-top: 0px;
padding-right: 10px;
padding-bottom: 0px;
padding-left: 10px;
border-right: #b2c9d3 1px solid;
font-weight: bold;
float: left;
cursor: pointer;
background: #ffffff;
}
/*未选tab头(超链接)的样式*/
.tabs {
border-right: #c1d8e0 1px solid;
padding-top: 0px;
padding-right: 10px;
padding-bottom: 0px;
padding-left: 10px;
font-weight: normal;
float: left;
cursor: pointer;
}
p {
font-size: 12pt;
text-indent: 2em;
}
li {
border-bottom-style: solid;
border-bottom-color: #EEE;
border-bottom-width: thin;
height: 45px;
font-family: "宋体";
font-size: 18pt;

}
h4{

letter-spacing:20px;
font-family:华文彩云;
font-size:25px;
color:#333333;
}
h4:hover{
color:rgb(60, 179, 113);
}
td{
letter-spacing: 3px;
border:1px solid rgb(180, 180, 180);
}
#ziping{
line-height:30px
}
#tabContent4 {


}
.button {
background-color: #4CAF50; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
float: left;
transition-duration: 0.4s;
}

.button a{

}
.button:hover{
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}
ol{

}
.content{
margin-top: 50px;
margin-left: 10px;
}


</style>

<script type="text/javascript">
//显示tab(tabHeadId:tab头中当前的超链接;tabContentId要显示的层ID)
function showTab(tabHeadId,tabContentId)
{
//tab层
var tabDiv = document.getElementById("tabDiv");
//将tab层中所有的内容层设为不可见
//遍历tab层下的所有子节点
var taContents = tabDiv.childNodes;
for(i=0; i<taContents.length; i++)
{
//将所有内容层都设为不可见
if(taContents[i].id!=null && taContents[i].id != 'tabsHead')
{
taContents[i].style.display = 'none';
}
}
//将要显示的层设为可见
document.getElementById(tabContentId).style.display = 'block';
//遍历tab头中所有的超链接
var tabHeads = document.getElementById('tabsHead').getElementsByTagName('a');
for(i=0; i<tabHeads.length; i++)
{
//将超链接的样式设为未选的tab头样式
tabHeads[i].className='tabs';
}
//将当前超链接的样式设为已选tab头样式
document.getElementById(tabHeadId).className='curtab';
document.getElementById(tabHeadId).blur();
}

</script>
</head>
posted on 2022-03-31 21:46  Bot_noob  阅读(15)  评论(0编辑  收藏  举报