Chrome精灵上的CSS精灵加载不一致

时间:2017-07-22 03:00:18

标签: html css google-chrome css-sprites

我有一个CSS背景精灵(2倍大小),仅在Chrome上显示不一致。当我加载页面时,应该是一系列标志的内容如下所示:

CSS Sprite weird

现在,如果我使用safari或firefox,它会正确加载

enter image description here

如何解决这个奇怪的问题?

	.flag {  
    background: url("flags_2x.png") no-repeat; 
    display:inline-block; 
    background-size:18px 7800px; 
    width:18px; 
    height:18px;
  }


.flag-abkhazia-12 {
	width: 12px;
	height: 12px;
	background-position: 0 0;
}

0 个答案:

没有答案