首页htmlborderPage Widget - 如何使右侧和左侧边框出现在顶部边框的顶部

Page Widget - 如何使右侧和左侧边框出现在顶部边框的顶部

我们想知道如何使右侧和左侧边框出现在顶部边框的顶部。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>

div {
  background: #EEE;
  border-top: 4px solid blue;
  height: 100px;
  position: relative;
  width: 100px;
}

div::after {
  content: "";
  position: absolute;
  bottom: 0;
  top: 0px;
  left: 0;
  right: 0;
  border-right: 4px solid red;
  border-left: 4px solid red;
}
</style>
</head>
<body>
  <div></div>
</body>
</html>