代码示例:(标识:eg_css3_border-image_button)
<!DOCTYPE html>
<html>
<head>
<style> 
div
{
border:10px solid transparent;
width:40px;
padding:5px 10px;
-moz-border-image: url(/static/demo/images/border_image_button.png) 0 14 0 14 stretch; /* 老版本的 Firefox */
-webkit-border-image: url(/static/demo/images/border_image_button.png) 0 14 0 14 stretch; /* Safari */
-o-border-image: url(/static/demo/images/border_image_button.png) 0 14 0 14 stretch; /* Opera */
border-image: url(/static/demo/images/border_image_button.png) 0 14 0 14 stretch;
}
</style>
</head>
<body>

<p><b>注释:</b>Internet Explorer 不支持 border-image 属性。</p>

<div>Search</div>

<p>这是我们使用的图片:</p>
<img src="/static/demo/images/border_image_button.png">

</body>
</html>
运行结果: