<!DOCTYPE html>
<html>
<head>
<title>W3.CSS(w3cschool.cn)</title>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<link rel="stylesheet" href="https://7npmedia.w3cschool.cn/w3.css">
</head>
<body>
<div class="w3-container">
<h2>悬停效果</h2>
<p>您还可以将w3-hover-color类与w3-hover-opacity结合使用,以创建稍微“更浅”的背景色。</p>
<div class="w3-panel w3-border w3-hover-red w3-padding">
<p>w3-hover-red</p>
</div>
<div class="w3-panel w3-border w3-hover-opacity w3-hover-red w3-padding">
<p>w3-hover-red with w3-hover-opacity</p>
</div>
</div>
</body>
</html>