border
英 [ˈbɔ:də(r)] 美 [ˈbɔ:rdə(r)]
n.边界;边;镶边;包边
vt.& vi.与…接界,在…的边上
vt.沿…的边,环绕…,给…镶边
vi.近似,毗邻
第三人称单数: borders 复数: borders 现在分词: bordering 过去式: bordered 过去分词: bordered
image
英 [ˈɪmɪdʒ] 美 [ˈɪmɪdʒ]
n.影像;肖像;概念,意向;镜像,映像
vt.反映;想像;作…的像;象征
第三人称单数: images 复数: images 现在分词: imaging 过去式: imaged 过去分词: imaged
css border-image属性 语法
作用:简写属性,设置所有 border-image-* 属性。
说明:border-image 属性是一个简写属性,用于设置以下属性:border-image-source,border-image-slice,border-image-width,border-image-outset,border-image-repeat。如果省略值,会设置其默认值。
注释:请使用 border-image-* 属性来构造漂亮的可伸缩按钮!
css border-image属性 示例
<!DOCTYPE html> <html> <head> <style> div { border:15px solid transparent; width:300px; padding:10px 20px; } #round { -moz-border-image:url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg) 30 30 round; /* Old Firefox */ -webkit-border-image:url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg) 30 30 round; /* Safari and Chrome */ -o-border-image:url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg) 30 30 round; /* Opera */ border-image:url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg) 30 30 round; } #stretch { -moz-border-image:url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg) 30 30 stretch; /* Old Firefox */ -webkit-border-image:url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg) 30 30 stretch; /* Safari and Chrome */ -o-border-image:url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg) 30 30 stretch; /* Opera */ border-image:url(http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg) 30 30 stretch; } </style> </head> <body> <div id="round">在这里,图片铺满整个边框。</div> <br> <div id="stretch">在这里,图片被拉伸以填充该区域。</div> <p>这是我们使用的图片:</p> <img src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg"> <p><b>注释:</b> Internet Explorer 不支持 border-image 属性。</p> <p>border-image 属性规定了用作边框的图片。</p> </body> </html>
运行实例 »
点击 "运行实例" 按钮查看在线实例