首页htmlborderPage Widget - 如何堆栈边界与后元素选择器

Page Widget - 如何堆栈边界与后元素选择器

我们想知道如何堆栈边界与后元素选择器。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.test {
  position: relative;
  height: 100px;
  width: 152px;
  overflow: hidden;
  border-left: 26px double red;
  border-right: 26px double red;
}

.test:after {
  width: 100px;
  height: 102px;
  content: "";
  position: absolute;
  background-color: #06F;
  border-left: 26px double #000;
  border-right: 26px double #000;
}
</style>
</head>
<body>
  <div class="test"></div>
</body>
</html>