一个很简单很简单的静态网页(附源代码)HTML+CSS

【完整资源包下载】包含图片、音效等
如果想白嫖可以私信或者发邮件fzx2003zhixue@163.com

首先声明:代码中使用的爱心特效和转动的音符这个两个效果是我从网上找到的…具体在哪里找的我也忘了…用的图片是邦乔彦的插画~
其他部分是自己写的

最后的效果如下
在这里插入图片描述
在这里插入图片描述

index.html
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>沙雕小星星</title>
    <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
    <div class="btn">
        <p>&nbsp;??WATCH MY CV??</p>
    </div>
    <div class="top">
        <a href="https://blog.csdn.net/weixin_51263734" target="_blank">我的兴趣</a>
        <a href="https://blog.csdn.net/weixin_51263734" target="_blank">我的过去</a>
        <a href="https://blog.csdn.net/weixin_51263734" target="_blank">我的梦想</a>
        <a href="https://blog.csdn.net/weixin_51263734" target="_blank" style="float:right">小风的博客</a>
    </div>
    <div class="content">
    
        <h1 class="avr">Give AR/VR Eyes and Brain</h1>
    </div>


    <div class="yinyue">
        <img class="music" src="./33.png" alt="">
        <audio autoplay="autoplay" id="audio" loop="loop">
            <source src="./music1.mp3" type="audio/MP3">

        </audio>

    </div>
    <div class="row">
        <div class="centercolumn">
            <div class="card">

                <h2 id="biaoti">浮生六记卷一</h2><br />
                <hr />
                <h4 id="qita">2021 年 1 月 29日</h4>

                <p style="text-indent:2em">我生于乾降二十八年(1763年)的冬天ー月十ニ日。那时天下承平,国家安泰。我生于读书人家家在苏州城沧浪亭畔,上天待我何等厚爱。</p>
                <p style="text-indent:2em">回想这一生,真如东坡先生所说“事如春梦了无痕”,如果不将之记下来,未免辜负了天赋幸运。</p>
                <p
  • 6
    点赞
  • 24
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
很抱歉,作为AI语言模型,我无法直接提供图文并茂的源代码。但是,我可以给您提供一些参考,帮助您了解如何使用HTMLCSS和JavaScript创建在线教育静态登录和注册页面。您可以参考以下示例代码: HTML代码: ```html <!DOCTYPE html> <html> <head> <title>在线教育登录与注册页面</title> <link rel="stylesheet" type="text/css" href="style.css"> <script type="text/javascript" src="script.js"></script> </head> <body> <div class="container"> <header> <h1>在线教育平台</h1> <nav> <ul> <li><a href="#">首页</a></li> <li><a href="#">课程</a></li> <li><a href="#">关于</a></li> <li><a href="#">联系我们</a></li> </ul> </nav> </header> <main> <div class="form-container"> <form id="login-form"> <h2>登录</h2> <label for="username">用户名:</label> <input type="text" id="username" name="username" required> <label for="password">密码:</label> <input type="password" id="password" name="password" required> <button type="submit">登录</button> </form> <form id="register-form" style="display:none;"> <h2>注册</h2> <label for="new-username">用户名:</label> <input type="text" id="new-username" name="new-username" required> <label for="new-password">密码:</label> <input type="password" id="new-password" name="new-password" required> <label for="confirm-password">确认密码:</label> <input type="password" id="confirm-password" name="confirm-password" required> <button type="submit">注册</button> </form> <p>还没有账号?<a href="#" onclick="showRegisterForm()">立即注册</a></p> </div> </main> <footer> <p>版权所有 © 2021 在线教育平台</p> </footer> </div> </body> </html> ``` CSS代码: ```css * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: Arial, sans-serif; } .container { max-width: 800px; margin: 0 auto; padding: 20px; } header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } h1 { font-size: 36px; font-weight: bold; color: #333; } nav ul { display: flex; list-style: none; } nav li { margin-right: 20px; } nav a { text-decoration: none; color: #333; font-size: 18px; } main { display: flex; justify-content: center; align-items: center; } .form-container { max-width: 400px; padding: 20px; border: 1px solid #ccc; border-radius: 10px; } h2 { font-size: 24px; font-weight: bold; margin-bottom: 20px; color: #333; } label { display: block; font-size: 18px; margin-bottom: 10px; color: #333; } input[type="text"], input[type="password"] { display: block; width: 100%; padding: 10px; margin-bottom: 20px; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; } button[type="submit"] { background-color: #007bff; color: #fff; padding: 10px 20px; border: none; border-radius: 5px; font-size: 18px; cursor: pointer; } button[type="submit"]:hover { background-color: #0056b3; } p { margin-top: 20px; font-size: 16px; color: #333; } a { color: #007bff; text-decoration: none; } a:hover { text-decoration: underline; } ``` JavaScript代码: ```javascript function showRegisterForm() { document.getElementById("login-form").style.display = "none"; document.getElementById("register-form").style.display = "block"; } ``` 这个示例代码包括一个简单的登录和注册表单,并使用CSS样式布局和美化页面,还包括JavaScript代码,用于在单击“立即注册”链接时切换表单。您可以根据需要修改和扩展这个示例代码,以适应您的具体需求。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值