运行 ❯
获取您
的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> body { background-color:#E7E9EB; } #myDIV { height:300px; background-color:#FFFFFF; border: 15px solid transparent; padding: 15px; border-image-source:url('border.png'); border-image-repeat: stretch; border-image-slice: 30; border-image-width: 10px; border-image-outset: 10px; } </style> </head> <body> <h1>The border-image-outset Property</h1> <div id="myDIV"> <p>A demonstration on how to set the border image.</p> <p>We used this image:<br> <img src="border.png"> </p> </div> </body> </html>