在 Bootstrap 缩略图中添加 HTML 标题
使用 Bootstrap,你可以轻松地向缩略图中添加标题。
你可以尝试运行以下代码来添加 HTML 标题 -
示例
<!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 = "row"> <div class = "col-sm-6 col-md-3"> <div class = "thumbnail"> <img src = "/bootstrap/images/kittens.jpg" alt = "Kittens"> </div> <div class = "caption"> <h3>Thumbnail Heading</h3> </div> </div> </div> </body> </html>
广告