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.tw/videotutorials/images/numerical_ability_home.jpg">
      <h1>Image with Rounded Corners</h1>
      <img src = "https://tutorialspoint.tw/videotutorials/images/numerical_ability_home.jpg" class = "img-circle">
   </body>
</html>

更新於: 12-6-2020

483 次瀏覽

開啟你的 職業生涯

透過完成課程獲得認證

開始學習
投放廣告
© . All rights reserved.