代码实例
<!DOCTYPE HTML> <html> <head> <style type="text/css"> p { background-image: url("/public/static/admin/logo/logo.png?v=1673331415"); background-size: 20px 20px; background-repeat: repeat-x; } </style> </head> <body> <p>This is a test. <br/> This is a test. <br/> This is a test. <br/> This is a test. <br/> This is a test. <br/> This is a test. <br/> This is a test. <br/> This is a test. <br/> </p> </body> </html>
尝试一下 »
点击“尝试一下”按钮查看在线实例
我们可以使用 background-image
设置背景图像。