首页htmlborderEffect - 使用框阴影创建分层边框

Effect - 使用框阴影创建分层边框

我们想知道如何使用框阴影创建分层边框。

<!DOCTYPE html>
<html>
<head>

<style type='text/css'>
.double-border {
  background-color: #ccc;
  border: 4px solid #fff;
  box-shadow: inset 0 0 0 4px #eee, inset 0 0 0 8px #ddd, inset 0 0 0 12px
    #ccc, inset 0 0 0 16px #bbb, inset 0 0 0 20px #aaa, inset 0 0 0 20px
    #999, inset 0 0 0 20px #888;
  padding: 3em;
  width: 16em;
  height: 16em;
}
</style>
</head>
<body>
  <div class="double-border">Multiple borders. </div>
</body>
</html>