首页htmlborderPage Widget - 如何使用图像创建水平边框

Page Widget - 如何使用图像创建水平边框

我们想知道如何使用图像创建水平边框。

<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.box {
  background: #16a085;
  width: 100px;
  color: white;
  padding: 100px;
  text-align: center;
  font-family: "monospace";
  font-weight: bold;
  font-size: 30px;
  margin: 5px;
  /* added position rule */
  position: relative;
}

.box:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: url('http://www.w3cschool.cn/style/download.png') repeat;
}
</style>
</head>
<body>
  <div class="box">Hello World</div>
</body>
</html>