目录

Bootstrap - 图像( Images)

本章介绍了对图像的Bootstrap支持。 Bootstrap提供了三个类,可用于将一些简单样式应用于图像 -

  • .img-rounded - 添加border-radius:6px以赋予图像圆角。

  • .img-circle - 通过添加border-radius:500px使整个图像变圆。

  • .img-thumbnail - 添加一些填充和灰色边框 -

以下示例演示了这一点 -

<img src = "/bootstrap/images/download.png" class = "img-rounded">
<img src = "/bootstrap/images/download.png" class = "img-circle">
<img src = "/bootstrap/images/download.png" class = "img-thumbnail">
新页面打开
↑回到顶部↑
WIKI教程 @2018