Adding a background image to a
element

后端 未结 9 946
无人及你
无人及你 2020-11-28 04:09

Is it possible to make a

element contain a background image, and if so, how would I go about doing this?

9条回答
  •  孤城傲影
    2020-11-28 04:46

    Foo Bar

    and in your CSS file:

    .foo {
        background-image: url("images/foo.png");
    }
    

提交回复
热议问题