<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap 实例</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.2/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.2/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="container mt-3">
<h2>对齐图像</h2>
<p>使用浮动类将图像向左或向右浮动:</p>
<img src="/i/photo/tulip.jpg" class="float-start" alt="Tulip" width="300" height="300">
<img src="/i/photo/tulip-2.jpg" class="float-end" alt="Tulip" width="300" height="300">
</div>
</body>
</html>