首页javascriptbackgroundjQuery Animation - 如何生气背景颜色rgba

jQuery Animation - 如何生气背景颜色rgba

我们想知道如何生气背景颜色rgba。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.box {
  border-style: solid;
  border-width: 1px;
  display: block;
  width: 100px;
  height: 100px;
  background-color: #0000FF;
  -webkit-transition: background-color 2s;
  transition: background-color 2s;
}

.box:hover {
  background-color: #FFCCCC;
}
</style>
</head>
<body>
  <div class="box"></div>
</body>
</html>