1 Star 0 Fork 0

亦小染. / homework_html

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
album.html 15.00 KB
一键复制 编辑 原始数据 按行查看 历史
亦小染. 提交于 2023-01-15 13:45 . new
<!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">
<link rel="stylesheet" href="./css/wordpicture_beautify.css">
<!--网站logo-->
<link rel="icon" href="./images/picture_logo.png" />
<title>小染_相册</title>
<style>
* {
margin: 0;
padding: 0;
}
/*背景图*/
body {
background: url(./images/picture_body.jpg) no-repeat fixed;
background-size: 100% 100%;
}
/* body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}*/
body {
margin: 0;
padding: 0;
font-size: 1rem;
color: #3d3737;
font-weight: 400;
font-family: 'Noto Sans SC', "SF Pro SC", "SF Pro Text", "SF Pro Icons", PingFang SC, Lantinghei SC, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif;
overflow-x: hidden;
}
/*内容盒子*/
.content {
width: 800px;
height: auto;
margin: 3.75rem auto;
background-color: #f9f9f9;
box-shadow: 0 0 6px 4px rgb(0 0 0 / 5%);
}
/*顶部导航*/
#header {
display: block;
}
.match .match_bg {
background-color: var(--white);
}
.header_bg {
position: relative;
}
#header .header_bg_img {
width: 100%;
height: 130px;
}
#header .header_bg_img img {
width: 100%;
height: 100%;
object-fit: cover;
}
img {
display: block;
}
.header_bg_filter {
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
}
.header_bg_filter::before {
display: block;
content: "";
position: absolute;
height: 100%;
width: 100%;
z-index: 1;
background: -webkit-linear-gradient(bottom, #fff, rgba(255, 255, 255, 0) 100%);
}
.header_bg_filter .header_frame {
position: absolute;
bottom: 0;
width: 100%;
z-index: 2;
padding: 1.6rem 1.4rem;
}
.header_frame {
display: flex;
}
.header_avatar {
width: 50px;
height: 50px;
border-radius: 3px;
overflow: hidden;
flex-shrink: 0;
}
.header_info {
display: flex;
flex: 1 1 auto;
flex-direction: column;
padding-left: 0.8rem;
}
#header .header_bg_filter .header_info_name {
color: #FFF;
}
#header .webname_show {
text-shadow: 0 0 5px #888;
}
#header .header_info_name {
flex: 1 1 auto;
font-size: 1.125rem;
}
#header .header_bg_filter .header_info_qm {
color: #7a8b9a;
}
#header .header_info_qm {
font-size: .75rem;
}
#header .navbar {
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
padding: 0 1.4rem;
border-bottom: 1px solid #dee2e6;
}
#header .meun_list {
width: 90%;
white-space: nowrap;
overflow-y: hidden;
}
#header .meun_ul {
padding: 0;
margin: 0;
list-style: none;
font-size: 14px;
line-height: 3;
}
#header .meun_li {
margin-right: 0.937rem;
font-size: 0.875rem;
display: inline-block;
letter-spacing: 1px;
}
/*下拉菜单*/
/* #heafer .level {
}*/
.level .level_ul {
display: none;
position: absolute;
min-width: 5.62rem;
background-color: #fff;
padding: 0;
margin: 0;
list-style: none;
transform: translateX(-35%) translateY(0px);
transition: all .25s;
box-shadow: 0px 0px 20px -5px rgb(158 158 158 /22%);
border-radius: 4px;
/*visibility: hidden;*/
/* opacity: 0;*/
z-index: 8;
overflow: hidden;
}
.level_ul .level_li {
padding: 0.1rem .625rem;
font-size: 13px;
text-align: center;
border-bottom: 1px solid rgba(238, 238, 238, 0.33);
}
.level_ul .level_li:hover {
background-color: rgb(248, 248, 248);
border-bottom: 1px solid rgba(238, 238, 238, 0.33);
}
.level:hover .level_ul {
display: block;
}
a {
text-decoration: none;
color: inherit;
}
a:hover {
color: #77aaad;
}
*,
::after,
::before {
box-sizing: border-box;
}
/*.alum_box {
width: 100%;
height: 800px;
margin-top: 50px;
background-color: aquamarine;
}*/
.main {
margin-top: 50px;
position: relative;
width: 100%;
height: 600px;
overflow: hidden;
border-radius: 5px;
}
.item {
position: absolute;
top: 0;
width: 100%;
height: 100%;
transform: all 0.5s;
background-size: cover;
}
.item1 {
background-image: url(./images/picture_album01.jpg);
}
.item2 {
background-image: url(./images/picture_album02.jpeg);
left: 100%;
}
.item3 {
background-image: url(./images/picture_album03.jpg);
left: 200%;
}
input {
position: relative;
z-index: 100;
display: none;
}
.select {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 10px;
z-index: 1;
display: flex;
justify-content: space-between;
align-items: center;
}
.select>label {
width: 10px;
height: 10px;
background-color: rgb(255, 255, 255);
border-radius: 50%;
cursor: pointer;
border: 1.5px solid white;
}
.main input:nth-of-type(1):checked~.select label:nth-of-type(1) {
background-color: rgb(236, 119, 77);
}
.main input:nth-of-type(2):checked~.select label:nth-of-type(2) {
background-color: rgb(244, 160, 174);
}
.main input:nth-of-type(3):checked~.select label:nth-of-type(3) {
background-color: rgb(153, 209, 232);
}
.main input:nth-of-type(1):checked~.item {
transform: translateX(0);
}
.main input:nth-of-type(2):checked~.item {
transform: translateX(-100%);
}
.main input:nth-of-type(3):checked~.item {
transform: translateX(-200%);
}
/*底部样式*/
.font {
width: 100%;
margin-top: 20px;
padding: 30px;
background-color: #f9f9f9;
height: 100px;
}
.font .tip {
text-align: center;
}
.font .tip span {
color: #d9694c;
}
/*右下角动图*/
.gif {
position: fixed;
bottom: 0;
right: 0;
}
.gif .word {
font-family: '华文行楷';
display: none;
height: 40px;
width: 220px;
padding: 10px;
background: rgba(190, 82, 42, 0.43);
border-radius: 10px;
border: 2px soid rgba(228, 68, 15, 0.712);
box-shadow: 0 0 40px rgba(219, 78, 26, 0.7);
}
.gif:hover .word {
display: block;
}
.gif .leaf1 {
position: absolute;
z-index: 3;
bottom: 14px;
right: 160px;
}
.gif .leaf2 {
position: absolute;
z-index: 3;
transform: translateX(121px) translateY(50px) rotate(38deg);
}
</style>
</head>
<!-- 顶部:导航背景和导航栏-->
<body class="match">
<!--主体内容-->
<div class="content">
<header id="header" class="match_bg">
<!--导航背景:背景图片、个人头像、导语-->
<div class="header_bg">
<div class="header_bg_img">
<img src="./images/picture_nav.jpg">
</div>
<div class="header_bg_filter">
<div class="header_frame">
<div class="header_avatar">
<img src="./images/avatar.jpg" width='50' height="50">
</div>
<div class="header_info">
<div class="header_info_name webname_show">
<a href="./login.html" target="_parent">小染</a>
</div>
<div class="header_info_qm">
亲爱的远方,月下的花香,向着星辰与深渊
</div>
</div>
</div>
</div>
</div>
<!--导航栏:八个链接,伪类选择器改变链接颜色-->
<div class="navbar">
<div class="meun_list">
<ul class="meun_ul">
<li class="meun_li">
<a href="./index.html">首页</a>
</li>
<li class="meun_li">
<a href="./article.html">文章</a>
</li>
<li class="meun_li">
<a href="./album.html">相册</a>
</li>
<li class="meun_li">
<a href="./essay.html">随笔</a>
</li>
<li class="meun_li level">
<a href="javascript:;">美好</a>
<ul class="level_ul">
<li class="level_li">
<a href="./glorious_01.html">亲爱的远方</a>
</li>
<li class="level_li">
<a href="./glorious_02.html">月下的花香</a>
</li>
<li class="level_li">
<a href="./glorious_03.html">星辰与深渊</a>
</li>
</ul>
</li>
<li class="meun_li">
<a href="./say.html">说说</a>
</li>
<li class="meun_li level">
<a href="javascript:;">原世界</a>
<ul class="level_ul">
<li class="level_li">
<a href="./yuanWorld_01.html">🍂 手书</a>
</li>
<li class="level_li">
<a href="./yuanworld_02.html">🍁 观测</a>
</li>
<li class="level_li">
<a href="./yuanworld_03.html">🌸 锦集</a>
</li>
</ul>
</li>
<li class="meun_li">
<a href="./aboutMe.html">关于我</a>
</li>
</ul>
</div>
</div>
</header>
<!--子页面_相册-->
<div class="alum">
<div class="picture_box">
<div class="picture_img">
<img src="./images/picture_album.jpg" alt="">
</div>
<div class="picture_float"></div>
<div class="picture_box_word">
<h1 class="picture_box_word_son">
<span>相册</span><br>
<div class="picture_box_word_english">album</div>
</h1>
</div>
</div>
<div class="alum_box">
<div class="main">
<input type="radio" name="choose" id="choose1" checked>
<input type="radio" name="choose" id="choose2">
<input type="radio" name="choose" id="choose3">
<div class="item item1"></div>
<div class="item item2"></div>
<div class="item item3"></div>
<span class="select">
<label for="choose1"></label>
<label for="choose2"></label>
<label for="choose3"></label>
</span>
</div>
</div>
</div>
<!--底部-->
<div class="font">
<div class="tip">
<span>🍁</span> <a href="#" target>@亦小染.</a>
<span>可叹叶飘零,归期未有期🍂</span>
</div>
</div>
</div>
<!--右下角动图-->
<div class="gif">
<div class="word">深山踏红叶,耳畔闻鹿鸣🍁</div>
<span class="leaf2">🍁</span>
<span class="leaf1">🍂<br>&nbsp;&nbsp;&nbsp;&nbsp;🍂</span>
<img src="./images/picture_gif_wangye.gif" width="300" height="300">
</div>
</body>
</html>
HTML
1
https://gitee.com/alicecici/homework_html.git
git@gitee.com:alicecici/homework_html.git
alicecici
homework_html
homework_html
master

搜索帮助