2

是否有任何原因为什么我的背景颜色没有出现但所有其他背景属性都在 Safari 中......我正在使用 LESS。

例子:

1)这不会在 Safari 中呈现背景颜色:

background: @lightGray url(/assets/project_title_icon.svg) no-repeat 0 0;

2)这确实在Safari中呈现背景颜色:

background: url(/assets/project_title_icon.svg) no-repeat 0 0;
background-color: @lightGray;
4

1 回答 1

1

Both of your examples should result in the same thing. See this jsFiddle, but I don't have safari :/

What does this Fiddle look like in Safari?

div {
    background: green url(http://placekitten.com/100/100) no-repeat 0 0;
    width: 200px;
    height: 200px;
}
于 2013-11-12T18:25:43.307 回答