<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>W3Cschool教程(w3cschool.cn)</title>
<style>
div
{
border:15px solid transparent;
width:250px;
padding:10px 20px;
}
#round
{
-webkit-border-image:url(/statics/images/course/border.png) 30 30 round;
-o-border-image:url(/statics/images/course/border.png) 30 30 round;
border-image:url(/statics/images/course/border.png) 30 30 round;
}
#stretch
{
-webkit-border-image:url(/statics/images/course/border.png) 30 30 stretch;
-o-border-image:url(/statics/images/course/border.png) 30 30 stretch;
border-image:url(/statics/images/course/border.png) 30 30 stretch;
}
</style>
</head>
<body>
<p><b>注意: </b> Internet Explorer 不支持 border-image 属性。</p>
<p> border-image 属性用于设置图片的边框。</p>
<div id="round">这里,图像平铺(重复)来填充该区域。</div>
<br>
<div id="stretch">这里,图像被拉伸以填充该区域。</div>