免费小型公司首页html+Bootstrap4自适应模板
时间: 2023-08-14 09:02:40 浏览: 122
以下是一个简单的免费小型公司首页HTML+Bootstrap4自适应模板:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Small Company</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-DmY9qg5BQfn7rJ6PjWzSfLQ3wbeUQsT8+y0n9aPHhF2I1T/KOQfFq5t8txBh/kfX" crossorigin="anonymous">
<!-- Custom CSS -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Navigation Bar -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Small Company</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-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 ml-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Home</a>
</li>
<li class="nav-item">
<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="#">Contact</a>
</li>
</ul>
</div>
</nav>
<!-- Header Section -->
<header class="header">
<div class="overlay"></div>
<div class="container">
<div class="row">
<div class="col-md-12">
<h1>Welcome to Small Company</h1>
<p>We provide the best services for your business</p>
<button class="btn btn-primary">Learn More</button>
</div>
</div>
</div>
</header>
<!-- About Section -->
<section class="about">
<div class="container">
<div class="row">
<div class="col-md-6">
<h2>About Us</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse commodo tellus ut est molestie, vitae faucibus nisi dignissim. Integer malesuada, magna at efficitur elementum, velit libero lobortis risus, a aliquam ex nibh in dolor. Integer ac finibus diam. Integer maximus sapien at dui hendrerit, id vestibulum nisl euismod. </p>
</div>
<div class="col-md-6">
<img src="https://via.placeholder.com/500x300" alt="About Us">
</div>
</div>
</div>
</section>
<!-- Services Section -->
<section class="services">
<div class="container">
<h2>Our Services</h2>
<div class="row">
<div class="col-md-4">
<div class="card">
<div class="card-body">
<h5 class="card-title">Service 1</h5>
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-body">
<h5 class="card-title">Service 2</h5>
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-body">
<h5 class="card-title">Service 3</h5>
<p class="card-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section class="contact">
<div class="container">
<h2>Contact Us</h2>
<div class="row">
<div class="col-md-6">
<form>
<div class="form-group">
<label for="name">Name</label>
<input type="text" class="form-control" id="name" placeholder="Enter your name">
</div>
<div class="form-group">
<label for="email">Email address</label>
<input type="email" class="form-control" id="email" placeholder="Enter your email">
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea class="form-control" id="message" rows="3"></textarea>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
<div class="col-md-6">
<p>Address: 1234 Main Street, City, State Zip</p>
<p>Phone: (123) 456-7890</p>
<p>Email: info@smallcompany.com</p>
</div>
</div>
</div>
</section>
<!-- Footer Section -->
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-md-12">
<p>© 2020 Small Company</p>
</div>
</div>
</div>
</footer>
<!-- Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmIaUksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
</body>
</html>
```
你可以将以上代码保存为一个HTML文件,然后在浏览器中打开以查看效果。记得将Bootstrap CSS和JS的链接改为你本地的文件,或者使用CDN链接。同时,你也可以修改内容和样式以适应你的需求。
阅读全文