运行 ❯
获取您的
自有
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> #borderimg1 { border: 10px solid transparent; padding: 15px; border-image: url(border.png) 30 round; } #borderimg2 { border: 10px solid transparent; padding: 15px; border-image: url(border.png) 30 stretch; } </style> </head> <body> <h1>The border-image Property</h1> <p>The border-image property specifies an image to be used as the border around an element:</p> <p id="borderimg1">Here, the image tiles to fill the area. The image is rescaled if necessary, to avoid dividing tiles.</p> <p id="borderimg2">Here, the image is stretched to fill the area.</p> <p>Here is the original image:</p> <img src="border.png"> </body> </html>