一套随便写的个人主页

发布时间 2023-11-14 00:00:10作者: FiveLin

index.html

-------------------------------------

<!DOCTYPE html>
<html lang="zh">
    <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>主页</title>
        <link rel="stylesheet" href="css/index.css">
        <link rel="stylesheet" href="css/public.css">
        <link rel="icon" href="images/xtb.jpg" sizes="16x16">
    </head>
    <body>
        <div class="header">
            <a href="index.html" class="logo">Home</a>
            <ul>
                <li><a class="active" href="index.html">主页</a></li>
                <li><a href="jilu.html">记录生活</a></li>
                <li><a href="zuopin.html">我的作品</a></li>
                <li><a href="xiangce.html">我的相册</a></li>
                <li><a href="guanyu.html">关于我啦</a></li>
            </ul>
        </div>
        <div class="container">
            <div class="left">
                <span>Aurora</span>
                <li>欢迎来到<br>我的<br>网站</li>
                <p>在这里,你可以发现我的日常生活记录以及我个人的照片,并且深入了解它们背后的探索性解释</p>
                <a href="guanyu.html" class="next">Aboue Me</a>
            </div>
            <div class="right"><img src="images/toux.jpg" alt=""><img src="images/li.png" alt=""><a href="https://www.silverdragon.cn"><img src="https://objectstorage.global.loongapi.com/loongapiSources/picbed/penglong/2023/02/05/202302050756207962.webp"><p>ME--∧应龙--></p></div>
        </div>
        <div class="footer" style="margin-top: 120px;">版权所有 © 2023 [FiveLin].保留所有权利</div>
    </body>
</html>
------------------------------
index.css
-------------------------------
/* 首页 */
*{margin: 0px;padding: 0px;text-decoration: none;box-sizing: border-box;list-style: none;}
.container{display: flex;justify-content: space-between;width: 1000px;margin: auto;margin-top: 150px;}
.container .left{width: 45%;}
.container .left span{color: #9498cd;font-size: 24px;}
.container .left li{font-family: Georgia, 'Times New Roman', Times, serif;font-weight: bolder;font-size: 30px;line-height: 35px;margin-top: auto;}
.container .left p{font-size: 20px;line-height: 35px;}
.next{width: 90px;height: 90px;background-color: #e9ecfe;border-radius: 50%;display: block;color: #6267a9;text-align: center;line-height: 90px;margin: auto;}
.right{width: 50%;height: 200px;display: flex;align-items: center;justify-content: space-between;position: relative;}
.right img:nth-child(1){display: block;height: 300px;}
.right img:nth-child(2){display: block;height: 100px;}
.right img:nth-child(3){display: block;height: 130px;width: 200px;position: absolute;border-radius: 10px;top: 180px;right: 30px;}
.right p{color:#9498cd;position: absolute;font-size: 30px;bottom: -70px;left: 170px;}
----------------------------------
jilu.html
----------------------------------
<!DOCTYPE html>
<html lang="zh">
    <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>记录</title>
        <link rel="stylesheet" href="css/jilu.css">
        <link rel="stylesheet" href="css/public.css">
                <link rel="icon" href="images/xtb.jpg" sizes="16x16">

    </head>
    <body>
        <div class="header">
            <a href="index.html" class="logo">Home</a>
               <ul>
                <li><a href="index.html">主页</a></li>
                   <li><a class="active"  href="jilu.html">记录生活</a></li>
                <li><a href="zuopin.html">我的作品</a></li>
                <li><a href="xiangce.html">我的相册</a></li>
                <li><a href="guanyu.html">关于我啦</a></li>
            </ul>
        </div>
        <div class="container">
            <div class="left">
                <span>记录</span>
                <li>我的生活<br>日常</li>
                <p>微笑是生活的阳光,它和泪水交织成一幅幅真挚的画卷,点亮我们内心的勇气与坚强</p>
                <img src="images/li.png" alt="">
                <a href="#">查看更多</a>
            </div>
        <div class="footer" style="margin-top: 120px;">版权所有 © 2023 [FiveLin].保留所有权利</div>
    </body>
</html>
-------------------------------
jilu.css
-------------------------------
/*记录生活*/
body{background-color: rgb(245, 242, 232);}
.container{display: flex;justify-content:space-between ;width: 1000px;margin: auto;margin-top: 150px;}
.container .left{width: 45%;position: relative;}
.container .left span{color: #9498cd;font-size: 24px;}
.container .left li{font-size: 30px;list-style: 35px;font-family: Georgia, 'Times New Roman', Times, serif;font-weight: bolder;margin-top: auto;}
.container .left p{width: 230px;margin-top: 35px;line-height: 30px;}
.container .left a{width: 120px;display: block;border: 1px solid #ddd;text-align: center;line-height: 28px;color: #333;margin-top: 35px;}
.container .left img{display: block;width: 100px;position: absolute;right: -40px;top: 100px;}

.container .right{width: 55%;display: flex;justify-content: space-between;flex-wrap: wrap;z-index: 111;}
.container .right li{width: 220px;height: 150px;margin-bottom: 30px;position: relative;}
.container .right li img{width: 100%;display: block;height: 100%;border-radius: 10px;}
.container .right li a{display: flex;width: 170px;color: #333;background-color: #fff;position: absolute;bottom: -10px;align-items: center;line-height: 90px;}
.container .right li a span{display: block;width: 25px;height: 25px; background:url(../images/li.png) no-repeat center; background-size:10px 10px;}
-------------------------------
xiangce.html
-------------------------------
<!DOCTYPE html>
<html lang="zh">
  <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>相册</title>
    <link rel="stylesheet" href="css/xiangce.css" />
    <link rel="stylesheet" href="css/public.css" />
    <link rel="icon" href="images/xtb.jpg" sizes="16x16" />
  </head>
  <body>
    <div class="header">
      <a href="index.html" class="logo">Home</a>
      <ul>
        <li><a href="index.html">主页</a></li>
        <li><a href="jilu.html">记录生活</a></li>
        <li><a href="zuopin.html">我的作品</a></li>
        <li><a class="active" href="xiangce.html">我的相册</a></li>
        <li><a href="guanyu.html">关于我啦</a></li>
      </ul>
    </div>
    <div class="container">
      <p>瞬间</p>
      <ul>
        <img src="images/toux.jpg" alt="" />
        <img src="images/toux.jpg" alt="" />
        <img src="images/toux.jpg" alt="" />
        <img src="images/toux.jpg" alt="" />
        <img src="images/toux.jpg" alt="" />
        <img src="images/toux.jpg" alt="" />
        <img src="images/toux.jpg" alt="" />
        <img src="images/toux.jpg" alt="" />
      </ul>
    </div>
    <div class="footer" style="margin-top: 120px">
      版权所有 © 2023 [FiveLin].保留所有权利
    </div>
  </body>
</html>
--------------------------
xiangce.css
--------------------------
/*相册分享*/
*{margin: 0px;padding: 0px;text-decoration: none;box-sizing: border-box;list-style: none;}
body{background-color: rgb(245,242,232);}
.container{width: 1000px;margin: auto;margin-top: 70px;}
.container p{color: #9498cd;width: 100%;margin-bottom: 30px;font-size: 21px;}
.container ul{display: flex;justify-content: space-between;flex-wrap: wrap;cursor: pointer;}
.container ul img{display: block;width: 201px;margin-bottom: 50px;border-radius: 10px;}
.get{text-decoration: underline;color: rgb(214,168,90);}
-----------------------------
zuopin.html
-----------------------------
<!DOCTYPE html>
<html lang="zh">
  <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>作品</title>
    <link rel="stylesheet" href="css/zuopin.css" />
    <link rel="stylesheet" href="css/public.css" />
    <link rel="icon" href="images/xtb.jpg" sizes="16x16" />
  </head>
  <body>
    <div class="header">
      <a href="index.html" class="logo">Home</a>
      <ul>
        <li><a href="index.html">主页</a></li>
        <li><a href="jilu.html">记录生活</a></li>
        <li><a class="active" href="zuopin.html">我的作品</a></li>
        <li><a href="xiangce.html">我的相册</a></li>
        <li><a href="guanyu.html">关于我啦</a></li>
      </ul>
    </div>
    <div class="container">
      <div class="left">
        <p class="txt1">图片制作</p>
        <img src="images/xtb.jpg" alt="" class="pa3-1" />
        <img src="images/xtb.jpg" alt="" class="pa3-2" />
        <p class="txt2">图片处理</p>
        <img src="images/xtb.jpg" alt="" class="pa3" />
        <img src="images/xtb.jpg" alt="" class="pa4" />
        <p class="txt3">视觉效果</p>
        <img src="images/xtb.jpg" alt="" class="pa5" />
      </div>
      <div class="right">
        <p>服务</p>
        <li>你做不了得<br />交给我来完成</li>
        <span
          >遥远的星辰和行星,如同宇宙交响乐的旋律,在寂静中传递着深邃与悠远。它们承载着宇宙的奥秘和无尽的智慧,用一种超越词语的语言,温暖触动我们内心</span
        >
      </div>
    </div>
    <div class="footer" style="margin-top: 120px">
      版权所有 © 2023 [FiveLin].保留所有权利
    </div>
  </body>
</html>
--------------------------
zuopin.css
--------------------------
/*我的作品*/
.container{display: flex;justify-content: space-between;width: 1000px;margin: auto;margin-top: 80px;}
.container .left{width: 50%;position: relative;height: 500px;}
.container .left p{color: #44507b;}
.container .left .pa3-1{display: block;width: 170px;height: 200px;position: absolute;top: 123px;border-radius: 10px;z-index: 1111;}
.txt1{position: absolute;top: 90px;}
.pa3-2{display: block;width: 120px;height: 120px;left: 260px;position: absolute;border-radius: 10px;top: 55px;z-index: 99;}
.txt2{position: absolute;left: 260px;top: 20px;}
.pa3{display: block;width: 100px;right: 30px;position: absolute;top: 150px;}
.pa4{width: 140px;display: block;height: 210px;position: absolute;top: 210px;right: 85px;border-radius: 10px;}
.txt3{position: absolute;top: 430px;right: 137px;}
.pa5{position: absolute;display: block;width: 100px;top: 300px;left: 150px;}
.right{width: 50%;padding-top: 10px;}
.right p{color: #9498cd;margin-left: 30px;margin-bottom: 30px;font-size: 22px;}
.right li{font-size: 30px;line-height: 35px;margin-left: 60px;background: url(../images/li.png)no-repeat 100px 55px;width: 200px;background-size: 90px 10px;}
.right span{font-size: 15px;width: 350px;display: block;margin-left: 200px;margin-top: 30px;color: rgb(90 90 90);}
.bf img{display: block;width: 100%;height: 200px;}
.bf{margin-top: 20px;margin-right: -50px;padding-left: 50px;}
---------------------------
guanyu.html
---------------------------
<!DOCTYPE html>
<html lang="zh">
  <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>关于</title>
    <link rel="stylesheet" href="css/guanyu.css" />
    <link rel="stylesheet" href="css/public.css">
            <link rel="icon" href="images/xtb.jpg" sizes="16x16">

  </head>
  <body>
    <div class="header">
      <a href="index.html" class="logo">Home</a>
      <ul>
        <li><a href="index.html">主页</a></li>
        <li><a href="jilu.html">记录生活</a></li>
        <li><a href="zuopin.html">我的作品</a></li>
        <li><a href="xiangce.html">我的相册</a></li>
        <li><a class="active" href="guanyu.html">关于我啦</a></li>
      </ul>
    </div>
    <!-- --- -->
    <div class="guanyu">
      <div class="head"><img src="images/toux.jpg" alt="" /></div>
      <div class="info">
        <p>姓名:FiveLin</p>
        <p>性别:boy</p>
        <p>年龄:19</p>
        <p>家乡:四川乐山</p>
        <p>#</p>
        <p>#</p>
      </div>
    </div>
    <div class="footer" style="margin-top: 120px;">版权所有 © 2023 [FiveLin].保留所有权利</div>
  </body>
</html>
----------------------------
guanyu.css
----------------------------
/*关于我啦*/
.guanyu{width: 1000px;margin: auto;margin-top: 150px;display: flex;justify-content: space-between;}
.head{width: 240px;height: 240px;}
.head img{display: block;width: 100%;height: 100%;}
.info{flex: 1;font-size: 16px;line-height: 27px;letter-spacing: 3px;padding-left: 50px;padding-top: 2px;color: #44507b;}
------------------
public.css
------------------
/* 默认样式 */
*{margin: 0px; padding: 0px; text-decoration: none; box-sizing: border-box; list-style: none;}
.header{width: 1000px; margin: auto; display: flex; justify-content: space-between; height: 75px; align-items: center;}
.header ul{display: flex; }
.header .logo{font-weight: bold; font-size: 24px; color:#9498cd;}
.header ul li a{margin-left: 50px; line-height: 50px; color: #4f5460; font-size: 18px;}
.footer{width: 1000px; margin: auto; margin-top: 70px; text-align: center; margin-bottom: 16px; color: #adb2d1;}
body{background: linear-gradient(to right, #ffffff,#f3efff,#f3efff,#ffffff,#f3efff);
    cursor: url(cur/default.cur),
    default;}
.active {
    color: #9498cd!important;
}