首页htmlborderPage Widget - 如何悬停时更改边界半径大小

Page Widget - 如何悬停时更改边界半径大小

我们想知道如何悬停时更改边界半径大小。


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.circle {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 1.5px solid #000;
  color: white;
  line-height: 20px;
  text-align: center;
  background: #fff;
  position: relative;
  z-index: 1;
}

.circle:before {
  position: absolute;
  right: 2px;
  top: 2px;
  left: 2px;
  bottom: 2px;
  content: '';
  background: #3E78B2;
  border-radius: 25px;
  z-index: -1;
}

.circle:hover {
  width: 200px;
  height: 200px;
  border-radius: 18px;
  font-size: 12px;
  color: white;
  line-height: 27px;
  text-align: center;
  background: #fff;
}
</style>
</head>
<body>
  <div class="container">
    <div class="circle">11</div>
  </div>
</body>
</html>