Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 118 additions & 0 deletions zhangyan1/Blog/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@

header{
background-color: rgb(203, 153, 160);
color: white;
font-size: 20px;
padding:3px;
}
nav{
position: relative;
}
h3{
padding-left: 5px;
}

ul{
height: 40px;
line-height: 40px;
background-color: rgb(245, 243, 238);

display: block;
margin: 0;
padding: 0;
overflow: hidden;
list-style-type: none;
position: sticky;
position: -webkit-sticky;
top: 0;
}
li{float: left;}
a{
display:block;
margin: 0;
font-size: 16px;
text-decoration: none;
text-align: center;
padding-left: 40px;
padding-right: 40px;
color: rgb(227, 144, 156);

}
a:hover{
background-color: rgb(203, 153, 160);
color: white;
}


div.main{
margin-top: 15px;
}

div.pi{
float: left;
width: 23%;
height: 1000px;
background-color: lightgrey;
}


section{
float: right;
width: 70%;
background-color:rgb(246, 238, 239) ;
padding: 15px;
padding-left: 0;
margin: 15px;

border-radius: 15px;
}
section.more{
display: none;
}
button{
left: 500px;
position: relative;
background-color:rgb(203, 153, 160);
color: white;
border: none;
font-size: 16px;
text-align: center;
border-radius: 3px;
opacity: 0.6;
transition: 0.3s;
display: inline-block;
text-decoration: none;
cursor: pointer;
}
button:hover {opacity: 1}
h2{
margin:0;
padding-left: 15px;
border-left: 5px pink;
border-left-style: solid;
color: rgb(61, 61, 61);
}
p{
padding-left: 15px;
color: rgb(86, 86, 86);
}
div.artfoot{
width: 96%;
display: inline;
text-align: right;
color: darkgrey;
font-size: 10px;
}
div.name{
display: inline;
text-align: right;
}
div.time{
display: inline;
text-align: right;
}

footer{
text-align: center;
clear: both;
}
86 changes: 86 additions & 0 deletions zhangyan1/Blog/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="index.css"/>
<script>
function dis(){
var secset=document.getElementsByClassName("more");
for (var i = 0; i<secset.length;i++) {
secset[i].style.display="block";
};
var buttset=document.getElementsByTagName("button");
for (var i = 0; i<secset.length;i++) {
buttset[i].style.display="none";
};
}
</script>
</head>
<body>
<header>
<h1>Zhang Yan's Blog</h1>
</header>
<nav>
<ul>
<li class="h"><a href="#home">首页</a></li>
<li class="c"><a href="#class">分类</a></li>
<li class="b"><a href="#belong">归档</a></li>
<li class="r"><a href="#read">读书</a></li>
<li class="a"><a href="#about">关于</a></li>
</ul>
</nav>
<div class="main">
<div class="pi">
<h3>个人简介</h3>
<p>这是个人简介....</p>
</div>
<section>
<h2>文章1</h2>
<p>文章的内容...</p>
<div class="artfoot first">
<div class="name">@Yan</div>
<div class="time">2022-10-13</div>
</div>
</section>
<section>
<h2>文章2</h2>
<p>文章的内容...</p>
<div class="artfoot second">
<div class="name">@Yan</div>
<div class="time">2022-10-14</div>
</div>
</section>
<section>
<h2>文章3</h2>
<p>文章的内容...</p>
<div class="artfoot third">
<div class="name">@Yan</div>
<div class="time">2022-10-15</div>
</div>
</section>
<button id="1" type="button" onclick="dis()">显示更多</button>
<section class="more">
<h2>文章4</h2>
<p>文章的内容...</p>
<div class="artfoot fourth">
<div class="name">@Yan</div>
<div class="time">2022-10-15</div>
</div>
</section>
<section class="more">
<h2>文章5</h2>
<p>文章的内容...</p>
<div class="artfoot fifth">
<div class="name">@Yan</div>
<div class="time">2022-10-16</div>
</div>
</section>
</div>
<footer>
CopyRight @zhangyan
<footer>
</body>
</html>
42 changes: 42 additions & 0 deletions zhangyan1/Blog/login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#header{
color:lightslategray;
text-align:center;
padding: 5px;
position: relative;
top: 180px;
}
form{
text-align: center;
}
button{
background-color:lightslategray;
color: white;
border: none;
font-size: 16px;
width: 180px;
border-radius: 8px;
opacity: 0.6;
transition: 0.3s;
display: inline-block;
text-decoration: none;
cursor: pointer;
position: relative;
top: 220px;
}
a:link, a:visited{
text-decoration: none;
color: white;
font-size: 16px;
}
button:hover {opacity: 1}
input{
font-size: 16px;
color:lightslategray;
position: relative;
top: 220px;
caret-color: silver;
padding: 5px;
}
input:focus{
outline: 1px solid lightslategray;
}
25 changes: 25 additions & 0 deletions zhangyan1/Blog/login.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="login.css"/>
</head>
<body>
<div id="header"><h1>Sign in</h1></div>
<form>
<input id ="textin" type="text" name="username" placeholder="username"/>
<br/>
<br/>
<input id ="textin" type="password" name="password" placeholder="password"/>
<br/>
<br/>
<button>
<a href="index.html">Submit</a>
</button>
</form>

</body>
</html>
77 changes: 77 additions & 0 deletions zhangyan1/Calculator/cal.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
div{
background-color: lightgrey;
width: 250px;
height: 350px;
padding: 10px;
}
#result{
background-color: white;
color: darkgrey;
border-radius: 8px;
border-style: dotted;
border-width: 2px;
border-color: darkgray;
padding-top: 10px;
padding-bottom: 10px;
margin:10px;
margin-left: 6px;
font-size: 24px;
width: 230px;
}
button{
background-color:lightslategray;
color: white;
border: none;
font-size: 30px;
border-radius: 5px;
opacity: 0.6;
transition: 0.3s;
display: inline-block;
text-decoration: none;
cursor: pointer;
position: relative;
padding-left: 10px;
padding-right: 10px;
margin:10px;
}
button:hover {opacity: 1}

button.AC{
font-size: 24px;
background-color: white;
color: darkgrey;
}
button.min{
padding-left: 14px;
padding-right: 14px;
}
button.mul{
padding-left: 11.5px;
padding-right: 11.5px;
}
button.dot{
padding-right: 18px;
}
button.percent{
font-size: 24px;
left: 103px;
}
h3{
color: rgb(134, 165, 165);
width: 400px;
left:300px;
position:absolute;
}
#readMe{
top:3px;
}
#TODO{
top:80px;
}
#ps{
color: rgb(166, 196, 196);
top:130px;
width: 400px;
left:300px;
position:absolute;
}
Loading