Img-circle Bootstrap 样式


使用 img-circle Bootstrap 样式设置你的图像样式,使其呈现完全圆形的样式。

你可以尝试运行以下代码来实现 img-circle样式

示例

在线演示

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Images</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>
      <p>Styling images with Bootstrap</p>
      <h1>Original Image</h1>
      <img src = "https://tutorialspoint.com/videotutorials/images/numerical_ability_home.jpg">
      <h1>Image with Rounded Corners</h1>
      <img src = "https://tutorialspoint.com/videotutorials/images/numerical_ability_home.jpg" class = "img-circle">
   </body>
</html>

更新于: 12-6-2020

483 次浏览

开启你的 职业生涯

通过完成课程获得认证

开始学习
投放广告
© . All rights reserved.