Bootstrap 成功語境類


Bootstrap 成功語境類表明一個成功或積極的操作。

可嘗試執行以下程式碼以實現 .success 類 −

示例

動態演示

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Table</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>
      <table class = "table">
         <thead>
            <tr>
               <th>Subject</th>
               <th>Marks</th>
               <th>Student</th>
            </tr>
          </thead>
          <tbody>
             <tr class = "success">
                <td>Maths</td>
                <td>90</td>
                <td>Amit</td>
             </tr>
             <tr class = "active">
                <td>Science</td>
                <td>80</td>
                <td>Aman</td>
             </tr>
             <tr>
                <td>English</td>
                <td>85</td>
                <td>Rahul</td>
             </tr>
          </tbody>
      </table>
   </body>
</html>

更新於: 12-6-2020

276 次瀏覽

開啟你的 職業生涯

修完課程可獲認證

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