给div设置背景图

<style>
.selector {
    background-image: url(https://random-api.czl.net/pic/czlwb);
    background-size: cover; /* 可选:确保背景图像覆盖整个元素 */
    background-position: center; /* 可选:将背景图像居中 */
    background-repeat: no-repeat; /* 可选:防止背景图像重复 */
}
</style>