首页htmlborderPage Widget - 如何在类之前使用改变边框渲染

Page Widget - 如何在类之前使用改变边框渲染

我们想知道如何在类之前使用改变边框渲染。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
div {
  width: 200px;
  height: 200px;
  position: relative;
}

.border {
  border: 15px silver solid;
}

.red-mark:before {
  content: '';
  display: block;
  width: 15px;
  position: absolute;
  top: -15px;
  left: -15px;
  bottom: -15px;
  background: red;
}
</style>
</head>
<body>
  <div class="border red-mark"></div>
</body>
</html>