使用 CSS 重複背景影像
background-repeat 屬性用於控制影像在背景中的重複。如果您不想重複影像,可以使用背景重複屬性的 no-repeat 值,在這種情況下,影像只顯示一次
示例
您可以嘗試執行以下程式碼來學習如何使用background-repeat 屬性
<html> <head> <style> body { background-image: url("/images/seaborn-4.jpg?v = 2"); background-repeat: repeat; } </style> </head> <body> <p>Tutorials Point</p> </body> </html>
廣告