background-image: url(“images/plaid.jpg”) no-repeat; wont show up

前端 未结 6 1155
青春惊慌失措
青春惊慌失措 2021-01-12 14:00

I can\'t seem to make my plaid.jpg the background on any of my pages, let alone all of them, I\'ve tried selecting it by body, html, *, the specific id of \"home\". nothing

6条回答
  •  执念已碎
    2021-01-12 14:42

    If that really is all that's in your CSS file, then yes, nothing will happen. You need a selector, even if it's as simple as body:

    body {
        background-image: url(...);
    }
    

提交回复
热议问题