运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,暗/亮
前往 Spaces
<!DOCTYPE html> <html> <head> <style> #borderimg1 { border: 10px solid transparent; padding: 15px; border-image-source: url(border.png); border-image-repeat: round; border-image-slice: 30; border-image-width: 10px; } #borderimg2 { border: 10px solid transparent; padding: 15px; border-image-source: url(border.png); border-image-repeat: round; border-image-slice: 30; border-image-width: 20px; } #borderimg3 { border: 10px solid transparent; padding: 15px; border-image-source: url(border.png); border-image-repeat: round; border-image-slice: 30; border-image-width: 30px; } </style> </head> <body> <h1>The border-image-width Property</h1> <p>The border-image-width property specifies the width of the border image:</p> <p id="borderimg1">border-image-width: 10px;</p> <p id="borderimg2">border-image-width: 20px;</p> <p id="borderimg3">border-image-width: 30px;</p> <p>Here is the original image:</p> <img src="border.png"> </body> </html>