关于心理疗愈的网页代码
时间: 2024-11-30 21:01:22 浏览: 14
创建一个关于心理疗愈的网页,可以使用HTML、CSS和轻量级框架如Bootstrap或jQuery来实现。以下是一个基础的示例,展示了网站的基本结构:
```html
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>心灵疗愈站</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css">
</head>
<body>
<header class="bg-light">
<nav class="navbar navbar-expand-lg navbar-dark">
<a href="#" class="navbar-brand">心灵疗愈</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item active">
<a class="nav-link" href="#about">关于我们</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#services">服务介绍</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#resources">资源中心</a>
</li>
</ul>
<form class="d-flex">
<input type="text" class="form-control me-2" placeholder="搜索疗法...">
<button type="submit" class="btn btn-primary">搜索</button>
</form>
</div>
</nav>
</header>
<main>
<section id="about" class="container py-5">
<h2 class="text-center">我们的使命</h2>
<p>在这里,我们提供专业的心理支持和治疗方案...</p>
</section>
<!-- 更多内容区域 -->
</main>
<footer class="bg-light text-center p-4">
<small>版权所有 © 2023 心灵疗愈站</small>
</footer>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.min.js"></script>
</body>
</html>
```
阅读全文