用图片做边框:border-image
border-image:图片路径 裁切位置/边框宽度 repeat方式;
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
div{width:200px; height:200px; border-image:url(border1.png) 27 27 27 27/27px repeat;}
</style>
</head>
<body>
<div></div>
</body>
</html>