CSS border-image属性用于将图像边框添加到某些元素。您可以尝试运行以下代码以实现border-image属性-
<html> <head> <style> #borderimg1 { border: 15px solid transparent; padding: 15px; border-image: url(https://nhooo.com/css/images/border.png) 50 round; } </style> </head> <body> <p id = "borderimg1">This is image border example.</p> </body> </html>