Bootstrap 缩略图类
Bootstrap 中 .thumbnail 类的作用是用来创建图片的缩略图 −
示例
<!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"> <a href = "#" class = "thumbnail"> <img src = "https://tutorialspoint.com/distributed_dbms/images/distributed-dbms-mini-logo.jpg" alt = "DDBMS"> </a> </div> </div> </body> </html>
广告