W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<!DOCTYPE html> <html> <head> <style> #borderimg1 { border: 10px solid transparent; padding: 15px; border-image: url(/i/border.png) 50 round; } #borderimg2 { border: 10px solid transparent; padding: 15px; border-image: url(/i/border.png) 20% round; } #borderimg3 { border: 10px solid transparent; padding: 15px; border-image: url(/i/border.png) 30% round; } </style> </head> <body> <h1>border-image 属性</h1> <p id="borderimg1">border-image: url(/i/border.png) 50 round;</p> <p id="borderimg2">border-image: url(/i/border.png) 20% round;</p> <p id="borderimg3">border-image: url(/i/border.png) 30% round;</p> <p><b>注释:</b>Internet Explorer 10 以及更早的版本不支持 border-image 属性。</p> </body> </html>