简单的个人介绍网页-主页面【附代码】

此文转载自:https://blog.csdn.net/Baridhu/article/details/110004129

主页面

简单的个人介绍网页-主页面【附代码】
简单的个人介绍网页-主页面【附代码】

代码1(style.css)

      .nav {
            height: 41px;
            border-top: 3px solid #b4fffa;
            border-bottom: 1px solid #edeef0;
            background-color: #fcfcfc;
            line-height: 41px;
        }

        .nav a {
           
            display: inline-block;
            height: 41px;
            font-size: 15px;
            color: #4c4c4c;
            text-decoration: none;
            padding: 0px 20px;
        }

        .nav a:hover {
            background-color: #fcfcfc;
            color: #93d9eb;
        }

代码2(主页面)

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HOMEPAGE</title>
    <link rel="stylesheet" href="style.css">
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background: url(timg1MHDVFRB.jpg) no-repeat;
            background-size: cover;
        }

        .box {
            width: 1200px;
            height: 540px;
            background: rgba(0, 0, 0, 0.2);
            margin: 0 auto;
            text-align: center;
            margin-top: 7%;

        }

        .box .left a {
            display: block;
            width: 200px;
            height: 90px;
            background: rgba(0, 0, 0, 0.2);
            font-size: 20px;
            color: #fff;
            text-decoration: none;
            padding-left: 30px;
            line-height: 90px;
        }

        .box .left a:hover {
            background-color: #ff6700;
        }

        .left {
            float: left;
            width: 230px;
            height: 540px;
            background-color: cadetblue;
            background: rgba(0, 0, 0, 0.2);
        }

        .right {
            float: right;
            width: 970px;
            height: 540px;
            background-color: rgba(152, 233, 233, 0.2);
            ;

        }

        .right>div {
            float: left;
            width: 470px;
            height: 540px;
            background: rgba(0, 0, 0, 0.2);
            margin-left: 14px;
            margin-bottom: 14px;
        }

        .right .one {
            background-color: rgb(152, 233, 233, 0.2);
        }

        .right .photo {
            width: 490px;
            height: 540px;
        }

        .right .one h1 {
            color: white;
            font-size: 60px;
        }

        .right .one p {
            font-size: 40px;
            font-weight: 500;
            color: rgb(148, 241, 248);
            font-style: italic;
        }
    </style>
</head>

<body>
    <div class="nav">
        <a href="#">HOMEPAGE</a>
        <a href="hi.html" target="_blank">Chris</a>
        <a href="Andy.html" target="_blank">Andy</a>
        <a href="juerr.html" target="_blank">Juerr</a>
        <a href="Christenson.html" target="_blank">Christenson</a>
        <a href="Kevin.html" target="_blank">Kevin</a>
    </div>
    <div class="box">
        <div class="left">
            <a href="#">HOMEPAGE</a>
            <a href="hi.html" target="_blank">Chris</a>
            <a href="Andy.html" target="_blank">Andy</a>
            <a href="juerr.html" target="_blank">Juerr</a>
            <a href="Christenson.html" target="_blank">Christenson</a>
            <a href="kevin.html" target="_blank">Kevin</a>
        </div>
        <div class="right">
            <div class="one">
                <h1>About us</h1>
                <p>We are a group that loves learning and is positive</p>
                <p>Successful or failing, we should always feel hopeful about the future.</p>
            </div>
            <div>
                <img src="timg1MHDVFRB.jpg" alt="" class="photo">
            </div>
        </div>
    </div>
</body>

</html>

注:1.图片大家可以去选择自己喜欢的.
2. 我看到网上很多这些简单网页都要钱,虽然支持原创,但希望大家可以从中学到知识,所以公开,希望大家学到东西,不要一味的复制粘贴。如果喜欢的话,就支持一下吧!

简单的个人介绍网页-主页面【附代码】

上一篇:利用chrome_remote_interface实现程序化、自动化Web安全测试


下一篇:web前端开发重点知识:前端字体截取