创建 Bootstrap 媒体列表
要创建 Bootstrap 中的 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> <ul class = "media-list"> <li class = "media"> <a class = "pull-left" href = "#"> <img class = "media-object" src = "https://tutorialspoint.com/latest/Angular-4.png" alt = "Generic placeholder image"> </a> <div class = "media-body"> <h4 class = "media-heading">Media heading</h4> <p> This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. </p> <div class = "media"> <a class = "pull-left" href = "#"> <img class = "media-object" src = "https://tutorialspoint.com/latest/Angular-4.png" alt = "Generic placeholder image"> </a> <div class = "media-body"> <h4 class = "media-heading">Nested heading</h4> This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. <div class = "media"> <a class = "pull-left" href = "#"> <img class = "media-object" src = "https://tutorialspoint.com/latest/Angular-4.png" alt = "Generic placeholder image"> </a> <div class = "media-body"> <h4 class = "media-heading">Nested heading</h4> This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. </div> </div> </div> </div> <div class = "media"> <a class = "pull-left" href = "#"> <img class = "media-object" src = "https://tutorialspoint.com/latest/Angular-4.png" alt = "Generic placeholder image"> </a> <div class = "media-body"> <h4 class = "media-heading">Nested heading</h4> This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. </div> </div> </div> </li> </ul> </body> </html>
广告
数据结构
网络
关系型数据库管理系统
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP