在Bootstrap 4卡内添加悬停效果

Add a hover effect inside the Bootstrap 4 card

要添加悬停效果,请使用Bootstrap中的card-link类。

以下是使用card-link类的链接:

1
2
XAMPP (MySQL + PHP + Apache)
WordPress

上面的所有代码都在card-body类中使用:

1
2
3
4
5
6
7
 <p>
WordPress Installation
</p>
 <p class="card-text">To work with WordPress, you need the following
</p>
 XAMPP (MySQL + PHP + Apache)
 WordPress

您可以尝试运行以下代码以在Bootstrap 4卡内添加悬停效果:

现场演示

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html lang="en">
 <head>
 Bootstrap Example
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">
 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js">
 </head>

<body>

 
 <p><center>[wp_ad_camp_3]</center></p><p>
Requirement - WordPress
</p>
 
 
   <p>
WordPress Installation
</p>
   <p class="card-text">To work with WordPress, you need the following
</p>
   XAMPP (MySQL + PHP + Apache)
   WordPress
 
 
 

</body>
</html>