Bootstrap well 类
bootstrapweb developmentcss framework更新于 2026/2/13 15:08:17
well 井形是 <div> 中的一个容器,它使内容在页面上呈现凹陷或嵌入的效果。要创建井形,只需将您想要显示在井形中的内容用包含 .well 类的 <div> 包裹起来即可。
您可以尝试运行以下代码,在 Bootstrap 中实现井形类。 −
示例
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <div class = "well">This is demo text!</div> </body> </html>

