📜  CSS 从文件中添加背景图片 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:38.328000             🧑  作者: Mango

代码示例1
/* The first method using an image on your server */
background: url('img/someimage.jpg');

/* The second method using an image hosted on another server */
background: url('http://www.someimage.com/someimage.jpg');

/* A third method that allows the site to determine protocol instead of explicitly defining it */
background: url('//www.someimage.com/someimage.jpg');