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

前端 未结 6 1158
青春惊慌失措
青春惊慌失措 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:45

    Try this:

    body
    { 
        background:url("images/plaid.jpg") no-repeat fixed center;
    }
    

    jsfiddle example: http://jsfiddle.net/Q9Zfa/

提交回复
热议问题