第三次作业

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>学校官网 - 关于我们</title>

<style>

  body {

    font-family: Arial, sans-serif;

  }

  .header {

    background-color: #4CAF50;

    color: white;

    padding: 10px;

    text-align: center;

  }

  .nav {

    overflow: hidden;

    background-color: #333;

  }

  .nav a {

    float: left;

    display: block;

    color: white;

    text-align: center;

    padding: 14px 16px;

    text-decoration: none;

  }

  .nav a:hover {

    background-color: #ddd;

    color: black;

  }

</style>

</head>

<body>

<div class="header">

  <h1>关于我们</h1>

</div>

<div class="nav">

  <a href="index.html">首页</a>

  <a href="about.html">关于我们</a>

  <a href="login.html">登录</a>

</div>

<h2>学校历史</h2>

<p>学校历史内容...</p>

<h2>教育理念</h2>

<p>教育理念内容</p>

</body>

</html>

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>学校官网 - 首页</title>

<style>

  body {

    font-family: Arial, sans-serif;

  }

  .header {

    background-color: #4CAF50;

    color: white;

    padding: 10px;

    text-align: center;

  }

  .nav {

    overflow: hidden;

    background-color: #333;

  }

  .nav a {

    float: left;

    display: block;

    color: white;

    text-align: center;

    padding: 14px 16px;

    text-decoration: none;

  }

  .nav a:hover {

    background-color: #ddd;

    color: black;

  }

</style>

</head>

<body>

<div class="header">

  <h1>欢迎来到我们的学校</h1>

</div>

<div class="nav">

  <a href="index.html">首页</a>

  <a href="about.html">关于我们</a>

  <a href="login.html">登录</a>

</div>

<h2>最新消息</h2>

<p>最新消息内容</p>

<h2>学校简介</h2>

<p>学校简介的内容</p>

</body>

</html>

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>学校官网 - 登录</title>

<style>

  body {

    font-family: Arial, sans-serif;

  }

  .login-container {

    width: 300px;

    margin: 0 auto;

    margin-top: 100px;

  }

  input[type=text], input[type=password] {

    width: 100%;

    padding: 12px 20px;

    margin: 8px 0;

    display: inline-block;

    border: 1px solid #ccc;

    box-sizing: border-box;

  }

  button {

    background-color: #4CAF50;

    color: white;

    padding: 14px 20px;

    margin: 8px 0;

    border: none;

    cursor: pointer;

    width: 100%;

  }

  button:hover {

    opacity: 0.8;

  }

</style>

</head>

<body>

<div class="login-container">

  <h2>登录</h2>

  <form action="/login" method="post">

    <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>

</div>

</body>

</html>

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<title>电商网站 - 首页</title>

<style>

  body {

    font-family: Arial, sans-serif;

  }

  .header {

    background-color: #f8f9fa;

    padding: 20px;

    text-align: center;

  }

  .nav {

    overflow: hidden;

    background-color: #333;

  }

  .nav a {

    float: left;

    display: block;

    color: white;

    text-align: center;

    padding: 14px 16px;

    text-decoration: none;

  }

  .nav a:hover {

    background-color: #ddd;

    color: black;

  }

  .product-container {

    display: flex;

    flex-wrap: wrap;

    justify-content: space-around;

    padding: 20px;

  }

  .product {

    border: 1px solid #ddd;

    padding: 10px;

    margin: 10px;

    width: 200px;

  }

  .product img {

    width: 100%;

    height: auto;

  }

  .footer {

    background-color: #333;

    color: white;

    text-align: center;

    padding: 10px;

    position: fixed;

    bottom: 0;

    width: 100%;

  }

</style>

</head>

<body>

<div class="header">

  <h1>欢迎来到我的电商网站</h1>

</div>

<div class="nav">

  <a href="#home">首页</a>

  <a href="#products">产品</a>

  <a href="#about">关于我们</a>

  <a href="#contact">联系方式</a>

  <a href="login.html">登录</a>

</div>

<div class="product-container">

  <div class="product">

    <img src="https://img.alicdn.com/imgextra/i1/6616405211/O1CN01VQTpgZ1oMgrpLBEvw_!!0-saturn_solar.jpg_360x360q90.jpg_.webp" alt="Product 1">

    <h3>产品名称 1</h3>

    <p>产品描述 1...</p>

    <p>$....</p>

  </div>

  <div class="product">

    <img src="https://img.alicdn.com/imgextra/i4/53877177/O1CN01Bk3TNp22t7WYig22L_!!0-saturn_solar.jpg_360x360q90.jpg_.webp" alt="Product 2">

    <h3>产品名称 2</h3>

    <p>产品描述 2...</p>

    <p>$....</p>

  </div>

  <!-- 更多产品... -->

</div>

<div class="footer">

  <p>版权所有 &copy; 2023 电商网站</p>

</div>

</body>

</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值