主页
CSS
CSS 边框图像
尝试:使用 border-image 创建边框
运行 ❯
获取你
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> #borderimg { border: 10px solid transparent; padding: 15px; border-image: url(border.png) 30 round; } </style> </head> <body> <h1>The border-image Property</h1> <p>Here, the middle sections of the image are repeated to create the border:</p> <p id="borderimg">border-image: url(border.png) 30 round;</p> <p>Here is the original image:</p><img src="border.png"> <p><strong>Note:</strong> Internet Explorer 10, and earlier versions, do not support the border-image property.</p> </body> </html>