首页
极刻
圈子
教程
开源
登录 / 注册
返回教程:CSS 参考手册
TRY RUN / 在线示例
CSS 参考手册 Border-image 按钮
CSS 参考手册 Border-image 按钮
源代码
运行
<!DOCTYPE html> <html> <head> <title>安科教程(www.ancii.com)</title> <style> div { border:10px solid transparent; width:40px; padding:5px 10px; -moz-border-image: url(/statics/demosource/border_image_button.png) 0 14 0 14 stretch; /* 老版本的 Firefox */ -webkit-border-image: url(/statics/demosource/border_image_button.png) 0 14 0 14 stretch; /* Safari */ -o-border-image: url(/statics/demosource/border_image_button.png) 0 14 0 14 stretch; /* Opera */ border-image: url(/statics/demosource/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="/statics/demosource/border_image_button.png"> </body> </html>
运行结果