每日總結(22/3/26)
阿新 • • 發佈:2022-03-31
<!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>