开发者

Background image isn't rendering in the web browser

开发者 https://www.devze.com 2023-01-20 08:57 出处:网络
I\'m trying to repeat an image I have by x and y, using repeat-all. Th开发者_运维问答e image isn\'t displaying.

I'm trying to repeat an image I have by x and y, using repeat-all. Th开发者_运维问答e image isn't displaying.

Here is the CSS code:

body
{
    background-image: url('Content/images/test.png') repeat-all;
}

I'm sure the CSS file is linked correctly, here is the Content folder of my application:

Background image isn't rendering in the web browser

Any help?


That's actually not being linked correctly, if that code is in your Site.css file. It should be:

background-image: url('images/test.png') repeat-all;
0

精彩评论

暂无评论...
验证码 换一张
取 消