首页htmlborderPage Widget - 如何创建淡入和淡出边框

Page Widget - 如何创建淡入和淡出边框

我们想知道如何创建淡入和淡出边框。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
a {
  width: 100px;
  height: 100px;
  border-width: 50px;
  border-color: rgba(0, 0, 0, 0);
  border-radius: 100%;
  -moz-border-radius: 100%;
  -webkit-border-radius: 100%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: 0.5s ease;
  -moz-transition: 0.5s ease;
  -ms-transition: 0.5s ease;
  -o-transition: 0.5s ease;
  transition: 0.5s ease;
}

a:hover {
  border-width: 0;
  border-color: rgba(0, 0, 0, 0.5);
}

.one {
  border-style: solid;
}

</style>
</head>
<body>
  <a href="#" class="one">w3cschool.cn</a>
</body>
</html>