首页htmlborderPage Widget - 如何重叠以创建自定义边框

Page Widget - 如何重叠以创建自定义边框

我们想知道如何重叠以创建自定义边框。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.inner {
  padding: 5px;
  border: 15px solid red;
  border-top: 0;
}

.outer {
  border-top: 15px solid teal;
}
</style>
</head>
<body>
  <div class="outer">
    <div class="inner">test</div>
  </div>
</body>
</html>