【发布时间】:2017-05-13 19:06:27
【问题描述】:
我在尝试向我的网站添加背景图片时遇到问题, 背景显示在 Firefox 中,但我必须重新加载页面 2 次才能看到它:/ 在 Chrome 上,它根本不显示:/
这是我的代码:
html {
/*-------------------------- Fond De Pages --------------------------*/
--blue-back: fixed url("/medias/images/blue_back.jpg");
--christmas-back: fixed url("/medias/images/christmas_back.jpg");
--mlg-back: fixed url("/medias/images/mlg.png");
/*-------------------------------------------------------------------*/
background: var(--christmas-back); /* Changer le fond ICI */
text-decoration: none;
color: inherit;
font-family: 'Roboto', sans-serif;
display:inline-block;
}
body {
text-decoration: none;
color: inherit;
margin: 0;
padding: 0;
}
【问题讨论】:
-
哦,这是我的网站,你可以看看发生了什么:
标签: css image google-chrome firefox background